@ConsumerType
public interface SocketIOSocketListener
| Modifier and Type | Method and Description |
|---|---|
void |
onDisconnect(java.lang.String reason)
Called when a socket disconnects.
|
void |
onError(JSONArray data)
Called when an error occurred
|
void |
onEvent(java.lang.String name,
JSONArray data,
SocketIOAck ack)
Called when a socket receives an event.
|
void onEvent(@Nonnull
java.lang.String name,
@Nonnull
JSONArray data,
@Nullable
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(java.lang.String reason)
reason - informative reasonvoid onError(JSONArray data)
data - error argumentsCopyright © 2010 - 2023 Adobe. All Rights Reserved