Created
May 1, 2012 22:02
-
-
Save mxriverlynn/2571786 to your computer and use it in GitHub Desktop.
client side socket.io code to listen to all events
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var socket = io.connect("http://myserver"); | |
socket.on("*", function(){ | |
// listen to any and all events that are emitted from the | |
// socket.io back-end server, and handle them here. | |
// is this possible? how can i do this? | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My answer to this StackOverflow question contains a solution:
https://stackoverflow.com/questions/32816290/what-happens-with-unhandled-socket-io-events/