Skip to content

@donpdonp /gist:1359122
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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() {
clients.splice(client_id-1,1)
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.