public interface SocketIOListener
Modifier and Type | Method and Description |
---|---|
boolean |
handleNamespace(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,
String reason)
Called when a socket disconnects.
|
boolean handleNamespace(String name)
name
- name of the namespace to check.true
if this listener will handle events for this namespace.void onConnect(SocketIOSocket socket)
socket
- the socket.void onDisconnect(SocketIOSocket socket, String reason)
socket
- the socket that disconnected.reason
- informative reason"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"