Package | Description |
---|---|
org.jooby |
do more, more easily
|
org.jooby.internal | |
org.jooby.internal.mvc | |
org.jooby.spi |
Modifier and Type | Interface and Description |
---|---|
static interface |
WebSocket.Handler<T> |
Modifier and Type | Field and Description |
---|---|
static WebSocket.OnError |
WebSocket.ERR
Default err callback.
|
Modifier and Type | Method and Description |
---|---|
default void |
WebSocket.broadcast(Object data,
WebSocket.OnError err)
Send data to all connected sessions.
|
void |
WebSocket.broadcast(Object data,
WebSocket.SuccessCallback success,
WebSocket.OnError err)
Send data to all connected sessions.
|
void |
WebSocket.onError(WebSocket.OnError callback)
Register an error callback to execute when an error is found.
|
default void |
WebSocket.send(Object data,
WebSocket.OnError err)
Send data through the connection.
|
void |
WebSocket.send(Object data,
WebSocket.SuccessCallback success,
WebSocket.OnError err)
Send data through the connection.
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketImpl.broadcast(Object data,
WebSocket.SuccessCallback success,
WebSocket.OnError err) |
void |
WebSocketImpl.onError(WebSocket.OnError callback) |
void |
WebSocketImpl.send(Object data,
WebSocket.SuccessCallback success,
WebSocket.OnError err) |
Constructor and Description |
---|
WebSocketRendererContext(List<Renderer> renderers,
NativeWebSocket ws,
MediaType type,
Charset charset,
Locale locale,
WebSocket.SuccessCallback success,
WebSocket.OnError err) |
Modifier and Type | Class and Description |
---|---|
class |
MvcWebSocket |
Modifier and Type | Method and Description |
---|---|
void |
NativeWebSocket.sendBytes(byte[] data,
WebSocket.SuccessCallback success,
WebSocket.OnError err)
Send a binary message to the client.
|
void |
NativeWebSocket.sendBytes(ByteBuffer data,
WebSocket.SuccessCallback success,
WebSocket.OnError err)
Send a binary message to the client.
|
void |
NativeWebSocket.sendText(byte[] data,
WebSocket.SuccessCallback success,
WebSocket.OnError err)
Send a text message to the client.
|
void |
NativeWebSocket.sendText(ByteBuffer data,
WebSocket.SuccessCallback success,
WebSocket.OnError err)
Send a text message to the client.
|
void |
NativeWebSocket.sendText(String data,
WebSocket.SuccessCallback success,
WebSocket.OnError err)
Send a text message to the client.
|
Copyright © 2017. All rights reserved.