You have, for exmaple this:
socket.on(Socket.EVENT_CONNECT, new Emitter.Listener() {
@Override
public void call(Object... args) {
_isConnected = true;
}
});
how you remove that listener?
Best
C
You can do the same way with the Javascript client.
// remove all listeners of the connect event
socket.off(Socket.EVENT_CONNECT);
listener = new Emitter.Listener() { ... };
socket.on(Socket.EVENT_CONNECT, listener);
// remove the specified listener
socket.off(Socket.EVENT_CONNECT, listener);
Great Thanks.. Works perfectly.. :)
Most helpful comment
You can do the same way with the Javascript client.