DEV Community

Discussion on: New to node.js and struggling with socket.io

Collapse
 
laub1199 profile image
Sennett Lau

I think you should pass in the "socket" param as follow:
Socket.on("connected", (socket) {
console.log(socket.id);
});

Collapse
 
fletch0132 profile image
Fletcher Moore

I'll give it a go, thank you