Package com.adobe.granite.socketio
Interface SocketIOAckListener
-
@ProviderType public interface SocketIOAckListener
Socket.IO listener is used to consume ack responses fromSocketIOEmitter.emit(String, org.apache.sling.commons.json.JSONArray)
calls.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getCallbackTimeout()
Allows the listener to specify a time for the callback timeout.void
onAck(JSONArray data)
Called when the ack is received.void
onTimeout()
Called when waiting for the ack response timed out.
-
-
-
Method Detail
-
getCallbackTimeout
long getCallbackTimeout()
Allows the listener to specify a time for the callback timeout.- Returns:
- the timeout or 0 to use the default timeout.
-
onAck
void onAck(@Nonnull JSONArray data)
Called when the ack is received.- Parameters:
data
- the data
-
onTimeout
void onTimeout()
Called when waiting for the ack response timed out.
-
-