Package com.adobe.granite.socketio
Interface SocketIOAck
-
@ProviderType public interface SocketIOAck
Socket.IO ack is used to signal theSocketIOSocketListenerwhen the client requests and ack packet.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisAcknowledged()Checks if this ack is already handled.voidsend(java.lang.Object... arguments)Sends the ack data back to the client.voidsend(JSONArray arguments)Sends the ack data back to the client.
-
-
-
Method Detail
-
isAcknowledged
boolean isAcknowledged()
Checks if this ack is already handled.- Returns:
trueif ack was sent,falseotherwise.
-
send
void send(@Nonnull java.lang.Object... arguments) throws java.io.IOExceptionSends the ack data back to the client.- Parameters:
arguments- ack data.- Throws:
java.io.IOException- if an error occurs
-
send
void send(@Nonnull JSONArray arguments) throws java.io.IOExceptionSends the ack data back to the client.- Parameters:
arguments- ack data.- Throws:
java.io.IOException- if an error occurs
-
-