-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use middleware in socket.io-client #1244
Comments
For future readers, catch-all listeners were added in Socket.IO v3: socket.onAny((eventName, ...args) => {
// ...
}); Documentation: https://socket.io/docs/v3/listening-to-events/#Catch-all-listeners |
What if I'm using lower versions than v3? I'm using v2 due to an outdated server Socket.IO version. |
@RixInGithub unfortunately, the feature was not backported to v2, which is in maintenance mode. |
How can I print every payload in outgoing/ingoing requests through socket.io-client?
I don't want to use any third party library, it is possible? And how?
I didn't find any examples of this.
I am using socket.io-client
The text was updated successfully, but these errors were encountered: