-
Notifications
You must be signed in to change notification settings - Fork 982
No "Socket.onAny(Event)" function in Java #475
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
Comments
@aqibbangash Realise this was a few years ago and might not be relevant anymore but I was just trying to do the same thing and I think what might help you is |
Is there any other way to achieve that? I get the following error with solution above:
|
Syntax: ```java socket.onAnyIncoming(new Emitter.Listener() { @OverRide public void call(Object... args) { // ... } }); socket.onAnyOutgoing(new Emitter.Listener() { @OverRide public void call(Object... args) { // ... } }); ``` Related: - socketio/engine.io-client-java#99 - #243 - #475
Here we go! socket.onAnyIncoming(new Emitter.Listener() {
@OverRide
public void call(Object... args) {
// ...
}
}); Included in version |
@darrachequesne after updated to 2.1.0 socket is not connecting . getting server error. may i know the reason? kindly help me pls |
Syntax: ```java socket.onAnyIncoming(new Emitter.Listener() { @OverRide public void call(Object... args) { // ... } }); socket.onAnyOutgoing(new Emitter.Listener() { @OverRide public void call(Object... args) { // ... } }); ``` Related: - socketio/engine.io-client-java#99 - socketio/socket.io-client-java#243 - socketio/socket.io-client-java#475
Unlike iOS library, I'm unable to find onAny(Event) function in Java Library.
This demands reframing the whole architecture for an app that is supposed to be developed for Android and iOS both.
The text was updated successfully, but these errors were encountered: