Skip to content

Instantly share code, notes, and snippets.

@wesbos
Created August 12, 2011 23:29
Show Gist options
  • Save wesbos/1143220 to your computer and use it in GitHub Desktop.
Save wesbos/1143220 to your computer and use it in GitHub Desktop.
Basic Socket.io Server
io = require('socket.io').listen(4000)
io.sockets.on 'connection', (socket) ->
console.log('Connected!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment