public interface WebSocketHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(WebSocket socket)
On close.
|
void |
onCloseFrame(WebSocket socket,
int statusCode,
String reasonText)
On close frame.
|
void |
onError(WebSocket socket,
WebSocketException e)
On error.
|
void |
onMessage(WebSocket socket,
Frame frame)
On message.
|
void |
onOpen(WebSocket socket)
On open.
|
void onOpen(WebSocket socket)
socket - the socketvoid onMessage(WebSocket socket, Frame frame)
socket - the socketframe - the framevoid onError(WebSocket socket, WebSocketException e)
socket - the sockete - the evoid onClose(WebSocket socket)
socket - the socketCopyright © 2021. All rights reserved.