Package com.corundumstudio.socketio
Class AckRequest
java.lang.Object
com.corundumstudio.socketio.AckRequest
Ack request received from Socket.IO client.
You can always check is it
true through
isAckRequested() method.
You can call sendAckData(java.lang.Object...) methods only during
DataListener.onData(com.corundumstudio.socketio.SocketIOClient, T, com.corundumstudio.socketio.AckRequest) invocation. If sendAckData(java.lang.Object...)
not called it will be invoked with empty arguments right after
DataListener.onData(com.corundumstudio.socketio.SocketIOClient, T, com.corundumstudio.socketio.AckRequest) method execution by server.
This object is NOT actual anymore if sendAckData(java.lang.Object...) was
executed or DataListener.onData(com.corundumstudio.socketio.SocketIOClient, T, com.corundumstudio.socketio.AckRequest) invocation finished.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck whether ack request was madevoidsendAckData(Object... objs) Send ack data to client.voidsendAckData(List<Object> objs) Send ack data to client.
-
Constructor Details
-
AckRequest
-
-
Method Details
-
isAckRequested
public boolean isAckRequested()Check whether ack request was made- Returns:
- true if ack requested by client
-
sendAckData
Send ack data to client. Can be invoked only once duringDataListener.onData(com.corundumstudio.socketio.SocketIOClient, T, com.corundumstudio.socketio.AckRequest)method invocation.- Parameters:
objs- - ack data objects
-
sendAckData
Send ack data to client. Can be invoked only once duringDataListener.onData(com.corundumstudio.socketio.SocketIOClient, T, com.corundumstudio.socketio.AckRequest)method invocation.- Parameters:
objs- - ack data object list
-