public interface WebSocket
| Modifier and Type | Interface and Description |
|---|---|
static class |
WebSocket.WebSocketFrameReadState |
static class |
WebSocket.WebSocketState |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(String host,
String path,
int port,
String protocol,
Map<String,String> additionalHeaders,
WebSocketHandler webSocketHandler)
Configure WebSocket connection
|
Boolean |
getEnabled()
Access if WebSocket enabled .
|
ByteBuffer |
getInputBuffer()
Access the input buffer (read only).
|
ByteBuffer |
getOutputBuffer()
Access the output buffer (read only).
|
ByteBuffer |
getPingBuffer()
Access the ping buffer (read only).
|
WebSocket.WebSocketState |
getState()
Access the current state of the layer.
|
WebSocketHandler |
getWebSocketHandler()
Access the handler for WebSocket functions.
|
ByteBuffer |
getWsInputBuffer()
Access the websocket input buffer (read only).
|
WebSocketHandler.WebsocketTuple |
unwrapBuffer(ByteBuffer buffer)
Remove WebSocket frame from the given buffer
|
void |
wrapBuffer(ByteBuffer srcBuffer,
ByteBuffer dstBuffer)
Add WebSocket frame to send the given buffer
|
void configure(String host, String path, int port, String protocol, Map<String,String> additionalHeaders, WebSocketHandler webSocketHandler)
host - the hots namepath - the resource pathport - the portprotocol - the base protocoladditionalHeaders - the Map of additional headerswebSocketHandler - the web socket handlervoid wrapBuffer(ByteBuffer srcBuffer, ByteBuffer dstBuffer)
srcBuffer - the source bufferdstBuffer - the destination bufferWebSocketHandler.WebsocketTuple unwrapBuffer(ByteBuffer buffer)
buffer - the buffer to unwrapWebSocketHandler getWebSocketHandler()
WebSocket.WebSocketState getState()
Boolean getEnabled()
ByteBuffer getOutputBuffer()
ByteBuffer getInputBuffer()
ByteBuffer getPingBuffer()
ByteBuffer getWsInputBuffer()
Copyright © 2019. All rights reserved.