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 longgetCallbackTimeout()Allows the listener to specify a time for the callback timeout.voidonAck(JSONArray data)Called when the ack is received.voidonTimeout()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.
-
-