Package | Description |
---|---|
bayou.websocket |
WebSocket server.
|
Modifier and Type | Method and Description |
---|---|
static WebSocketMessage |
WebSocketMessage.binary(byte[] bytes)
Create a binary message containing the bytes.
|
static WebSocketMessage |
WebSocketMessage.binary(ByteSource byteSource)
Wrap a ByteSource as a binary message.
|
static WebSocketMessage |
WebSocketMessage.text(ByteSource byteSource)
Wrap a ByteSource as a text message.
|
static WebSocketMessage |
WebSocketMessage.text(CharSequence chars)
Create a text message containing the chars.
|
Modifier and Type | Method and Description |
---|---|
Async<WebSocketMessage> |
WebSocketChannel.readMessage()
Read the next message from the peer.
|
Modifier and Type | Method and Description |
---|---|
Async<Long> |
WebSocketChannel.writeMessage(WebSocketMessage message)
Write a message to the peer.
|