I used npm to install socket.io. The server is working fine, but does not capture personalized outbound events from the client.
The documentation for socket.io is not updated, for example, the socket.io-node package does not exist in the npm registry, as the git page says.
So, I am wondering if this function is in the basic installation of socket.io or if I am doing something wrong.
My code basically looks like this:
Server:
client.on('checkin', function (name) { ... });
customer:
socket.emit('checkin',name);
Is there anything else I need to do?
source share