You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need to be able to listen to all "other" events #243
After a series of "on event_a", "on event_b", I need to listen to other events that have not been defined by my code.
This is very important for troubleshooting. Sometimes I expect the server side to send me an event but it sends me another event which I haven't listened to. I don't know what this event is because I can't listened to unexpected "other" events.
What I meant is this library doesn't support "oher" events. And I have no though to do so for now since JS client also doesn't.
Can you propose this as an issue of socketio/socket.io-client if you really think we should have the feature?
Yes. I need to listen all events as well.
There is a working solution for JavaScript socket-io-client-respond-to-all-events-with-one-handler (second answer).
I see there is a custom decoder in socket.io-client-java from version 1.0.0. Is this a way? There is included test in repository but I can not figure out how to use it.
is it possible to track all possible events by using 1x version? because the latest version is not able to connect to the server due to incompatibility . can i achive onAnyIncoming in version 1.0.1
Hello Team,
It would be very helpful if you can implement onAnyIncoming in Version 1x
very soon. I have a deadline to complete my project.
Thanks
On Wed, Dec 7, 2022 at 3:42 PM Irshad Madappattu ***@***.***>
wrote:
Activity
nkzawa commentedon Nov 9, 2015
Unfortunately, there is no way to do that for now. Basically, you need to know what kind of events server sends.
chenjianjx commentedon Nov 10, 2015
Yes, there is. Other socket.io java clients can do that. Can you seriously try it?
nkzawa commentedon Nov 11, 2015
What I meant is this library doesn't support "oher" events. And I have no though to do so for now since JS client also doesn't.
Can you propose this as an issue of socketio/socket.io-client if you really think we should have the feature?
Aksi0m commentedon May 24, 2016
I am also in need for a feature like that!
Raduzz commentedon Dec 26, 2017
Yes. I need to listen all events as well.
There is a working solution for JavaScript socket-io-client-respond-to-all-events-with-one-handler (second answer).
I see there is a custom decoder in socket.io-client-java from version 1.0.0. Is this a way? There is included test in repository but I can not figure out how to use it.
pauljackals commentedon Apr 19, 2022
Hi, JS client has .onAny() now, maybe you'll reconsider adding something like that? 🙂
rezafaraji93 commentedon May 26, 2022
I really this onAny too!
feat: implement catch-all listeners
darrachequesne commentedon Jul 10, 2022
Here we go:
Included in version
2.1.0irshadir7 commentedon Dec 7, 2022
is it possible to track all possible events by using 1x version? because the latest version is not able to connect to the server due to incompatibility . can i achive onAnyIncoming in version 1.0.1
darrachequesne commentedon Dec 7, 2022
@irshadir7 hi! I will backport the changes in the 1.x branch, let me check.
irshadir7 commentedon Dec 7, 2022
irshadir7 commentedon Dec 8, 2022
feat: implement catch-all listeners