Package com.adobe.granite.socketio
Interface SocketIOAck
-
@ProviderType public interface SocketIOAck
Socket.IO ack is used to signal theSocketIOSocketListener
when the client requests and ack packet.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isAcknowledged()
Checks if this ack is already handled.void
send(java.lang.Object... arguments)
Sends the ack data back to the client.void
send(JSONArray arguments)
Sends the ack data back to the client.
-
-
-
Method Detail
-
isAcknowledged
boolean isAcknowledged()
Checks if this ack is already handled.- Returns:
true
if ack was sent,false
otherwise.
-
send
void send(@Nonnull java.lang.Object... arguments) throws java.io.IOException
Sends 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.IOException
Sends the ack data back to the client.- Parameters:
arguments
- ack data.- Throws:
java.io.IOException
- if an error occurs
-
-