Skip to content

Instantly share code, notes, and snippets.

@mxriverlynn
Created May 1, 2012 22:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxriverlynn/2571786 to your computer and use it in GitHub Desktop.
Save mxriverlynn/2571786 to your computer and use it in GitHub Desktop.
client side socket.io code to listen to all events
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?
});
@eadsjr
Copy link

eadsjr commented Jan 17, 2019

My answer to this StackOverflow question contains a solution:
https://stackoverflow.com/questions/32816290/what-happens-with-unhandled-socket-io-events/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment