Interface IWebSocketConnection
-
- All Known Implementing Classes:
AWebsocketConnection,WebSocketConnectionClient,WebsocketConnectionClient2,WebSocketConnectionServer
public interface IWebSocketConnectionInterface representing a connection via web socket, either server- or client-side.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the connection (ignored if already closed).voidforceClose()Forcibly closes the connection (ignored if already closed).IFuture<java.lang.Integer>sendMessage(byte[] header, byte[] body)Send bytes using the connection.
-
-
-
Method Detail
-
sendMessage
IFuture<java.lang.Integer> sendMessage(byte[] header, byte[] body)
Send bytes using the connection.- Parameters:
header- The message header.body- The message body.- Returns:
- A future indicating success.
-
close
void close()
Closes the connection (ignored if already closed).
-
forceClose
void forceClose()
Forcibly closes the connection (ignored if already closed).
-
-