I used npm to install socket.io. The server is running fine but is not capturing custom emitted events from the client.
The documentation on socket.io is not up to date, for example the socket.io-node package does not exist in the npm repo like the git page says.
So I’m wondering if this functionality is gone in the base socket.io install or if I am doing something wrong.
My code is basically as follows:
server:
client.on('checkin', function (name) { ... });
client:
socket.emit('checkin',name);
Is there something more I need to be doing?
Socket.io 0.7 was released today (see this link), and the events used by @penguinbroker in it’s example code are working now.