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(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 Object... arguments) throws IOException
Sends the ack data back to the client.- Parameters:
arguments
- ack data.- Throws:
IOException
- if an error occurs
-
send
void send(@Nonnull JSONArray arguments) throws IOException
Sends the ack data back to the client.- Parameters:
arguments
- ack data.- Throws:
IOException
- if an error occurs
-
-