Skip to content
Create a gist now

Instantly share code, notes, and snippets.

server.on('connection', function(socket) {
var client_id = clients.push(socket)
console.log('connected. '+clients.length+' clients. '+clients);
socket.on('data', go)
socket.on('close', function() {
console.log('closed. client list '+clients)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.