public class AckRequest extends Object
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 and Description |
|---|
AckRequest(Packet originalPacket,
SocketIOClient client) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAckRequested()
Check whether ack request was made
|
void |
sendAckData(List<Object> objs)
Send ack data to client.
|
void |
sendAckData(Object... objs)
Send ack data to client.
|
public AckRequest(Packet originalPacket, SocketIOClient client)
public boolean isAckRequested()
public void sendAckData(Object... objs)
DataListener.onData(com.corundumstudio.socketio.SocketIOClient, T, com.corundumstudio.socketio.AckRequest)
method invocation.objs - - ack data objectspublic void sendAckData(List<Object> objs)
DataListener.onData(com.corundumstudio.socketio.SocketIOClient, T, com.corundumstudio.socketio.AckRequest)
method invocation.objs - - ack data object listCopyright © 2012–2021. All rights reserved.