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 SummaryAll 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- 
sendMessageIFuture<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.
 
 - 
closevoid close() Closes the connection (ignored if already closed).
 - 
forceClosevoid forceClose() Forcibly closes the connection (ignored if already closed).
 
- 
 
-