How to best send additional data upon socket connection?
Client:
socket.on('connect',function(){
//I'd like set some values and pass them up to the node server.
});
Node.js Server:
io.on('connection', function(client){
//I'd like to get the data here.
});
For example sending a user name or email address etc.