@ConsumerType
public interface SocketIOListener
Modifier and Type | Method and Description |
---|---|
boolean |
handleNamespace(java.lang.String name)
Checks whether this listener wants to handle events for the given namespace.
|
void |
onConnect(SocketIOSocket socket)
Called when a socket connects.
|
void |
onDisconnect(SocketIOSocket socket,
java.lang.String reason)
Called when a socket disconnects.
|
boolean handleNamespace(@Nonnull java.lang.String name)
name
- name of the namespace to check.true
if this listener will handle events for this namespace.void onConnect(@Nonnull SocketIOSocket socket)
socket
- the socket.void onDisconnect(@Nonnull SocketIOSocket socket, @Nullable java.lang.String reason)
socket
- the socket that disconnected.reason
- informative reasonCopyright © 2010 - 2023 Adobe. All Rights Reserved