- Enclosing interface:
- WebSocket
public static interface WebSocket.OnMessage
On message callback. When a Message is send by a client, this callback allow you to
handle/react to it.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onMessage
(WebSocket ws, WebSocketMessage message) Generated when a client send a message.
-
Method Details
-
onMessage
Generated when a client send a message.- Parameters:
ws
- WebSocket.message
- Client message.
-