Skip to content

Instantly share code, notes, and snippets.

View alexcambose's full-sized avatar
🦄

Alexandru Cambose alexcambose

🦄
View GitHub Profile
@alexpchin
alexpchin / socket-cheatsheet.js
Created December 15, 2015 16:58
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

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: