public interface SocketIOSocketListener
Modifier and Type | Method and Description |
---|---|
void |
onDisconnect(String reason)
Called when a socket disconnects.
|
void |
onError(JSONArray data)
Called when an error occurred
|
void |
onEvent(String name,
JSONArray data,
SocketIOAck ack)
Called when a socket receives an event.
|
void onEvent(String name, JSONArray data, SocketIOAck ack)
ack
parameter is not-null if the client requested an 'ack' event.
the listener should send the ack as soon as possible.name
- name of the event.data
- event argumentsack
- not null
if the client requested an ack.void onDisconnect(String reason)
reason
- informative reasonvoid onError(JSONArray data)
data
- error arguments"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"