Skip to content

Instantly share code, notes, and snippets.

View SaydChada's full-sized avatar

CHADA S SaydChada

  • France
View GitHub Profile
@SaydChada
SaydChada / Node_AWS_Linux.md
Created April 3, 2017 14:57 — forked from nrollr/Node_AWS_Linux.md
Install Node.js on Amazon Linux (EC2)

##Installing Node.js on Amazon Linux AMI

The following will guide you through the process of installing Node.js on an AWS EC2 instance running Amazon Linux AMI 2016.09 - Release Notes

For this process I'll be using a t2.micro EC2 instance running Amazon Linux AMI (ami-d41d58a7). Once the EC2 instance is up-and-running, connect to your server via ssh

@SaydChada
SaydChada / socket-cheatsheet.js
Last active March 30, 2017 16:07 — forked from alexpchin/socket-cheatsheet.js
A quick cheatsheet for socket.io
// sending to sender-client only
socket.emit('message', "this is a test");
// sending to all clients, include sender
io.emit('message', "this is a test");
// sending to all clients except sender
socket.broadcast.emit('message', "this is a test");
// sending to all clients in 'game' room(channel) except sender