MCPcopy
hub / github.com/socketio/socket.io-client-java / on

Method on

src/main/java/io/socket/client/On.java:9–17  ·  view source on GitHub ↗
(final Emitter obj, final String ev, final Emitter.Listener fn)

Source from the content-addressed store, hash-verified

7 private On() {}
8
9 public static Handle on(final Emitter obj, final String ev, final Emitter.Listener fn) {
10 obj.on(ev, fn);
11 return new Handle() {
12 @Override
13 public void destroy() {
14 obj.off(ev, fn);
15 }
16 };
17 }
18
19 public interface Handle {
20

Calls

no outgoing calls