Is it possible to have a socket.io client respond to all events without to have specify each event individually?
For example, something like this (which obviously do
The current (Apr 2013) GitHub doc on exposed events mentions a socket.on('anything')
. It appears that 'anything' is a placeholder for a custom event name, not an actual keyword that would catch any event.
I've just started working with web sockets and Node.JS, and immediately had a need to handle any event, as well as to discover what events were sent. Can't quite believe this functionality is missing from socket.io.