Uses of Interface
io.jooby.WebSocket
Packages that use WebSocket
-
Uses of WebSocket in io.jooby
Modifier and TypeMethodDescriptiondefault WebSocketSet an application attribute.default WebSocketWebSocket.close()Close the web socket and send aWebSocketCloseStatus.NORMALcode to client.WebSocket.close(WebSocketCloseStatus closeStatus) Close the web socket and send a close status code to client.default WebSocketEncode a value and send a text message to client.WebSocket.render(Object value, WebSocket.WriteCallback callback) Encode a value and send a text message to client.default WebSocketWebSocket.renderBinary(Object value) Encode a value and send a binary message to client.WebSocket.renderBinary(Object value, WebSocket.WriteCallback callback) Encode a value and send a binary message to client.default WebSocketWebSocket.send(byte[] message) Send a text message to client.default WebSocketWebSocket.send(byte[] message, WebSocket.WriteCallback callback) Send a text message to client.default WebSocketWebSocket.send(DataBuffer message) WebSocket.send(DataBuffer message, WebSocket.WriteCallback callback) default WebSocketSend a text message to client.WebSocket.send(String message, WebSocket.WriteCallback callback) Send a text message to client.default WebSocketWebSocket.send(ByteBuffer message) WebSocket.send(ByteBuffer message, WebSocket.WriteCallback callback) default WebSocketWebSocket.sendBinary(byte[] message) Send a binary message to client.default WebSocketWebSocket.sendBinary(byte[] message, WebSocket.WriteCallback callback) Send a binary message to client.default WebSocketWebSocket.sendBinary(DataBuffer message) WebSocket.sendBinary(DataBuffer message, WebSocket.WriteCallback callback) default WebSocketWebSocket.sendBinary(String message) Send a binary message to client.WebSocket.sendBinary(String message, WebSocket.WriteCallback callback) Send a binary message to client.default WebSocketWebSocket.sendBinary(ByteBuffer message) WebSocket.sendBinary(ByteBuffer message, WebSocket.WriteCallback callback) Modifier and TypeMethodDescriptionWebSocket.getSessions()Web sockets connected to the same path.Modifier and TypeMethodDescriptionvoidWebSocket.OnClose.onClose(WebSocket ws, WebSocketCloseStatus closeStatus) Generated when client close the connection or when explicit calls toclose(WebSocketCloseStatus).voidOn connect callback with recently created web socket.voidError callback, let you listen for exception.voidWebSocket.OnMessage.onMessage(WebSocket ws, WebSocketMessage message) Generated when a client send a message.voidWebSocket.WriteCallback.operationComplete(WebSocket ws, Throwable cause) Notify about message sent to client.static ContextContext.websocket(Context ctx, WebSocket ws, boolean binary, WebSocket.WriteCallback callback) Wrap a HTTP context and make it WebSocket friendly.Modifier and TypeMethodDescriptionvoidWebSocket.forEach(SneakyThrows.Consumer<WebSocket> callback) For each of live sessions (including this) do something with it.