public interface WebSocketListener
Modifier and Type | Method and Description |
---|---|
void |
onWebSocketBinary(byte[] data,
int offset,
int length)
Callback to be called when binary data retrieved.
|
void |
onWebSocketClose(int statusCode,
String reason)
Callback to be called when closed.
|
void |
onWebSocketConnect()
Callback to be called when connected.
|
void |
onWebSocketConnectError(Throwable cause)
Callback to be called on connect error.
|
void |
onWebSocketConnecting()
Callback to be called when connecting.
|
void |
onWebSocketError(Throwable cause)
Callback to be called on error.
|
void |
onWebSocketText(String message)
Callback to be called when closed.
|
void onWebSocketConnecting()
void onWebSocketConnect()
void onWebSocketClose(int statusCode, String reason)
statusCode
- the status codereason
- the reasonvoid onWebSocketText(String message)
message
- the messagevoid onWebSocketBinary(byte[] data, int offset, int length)
data
- the bytesoffset
- start offsetlength
- the lengthvoid onWebSocketConnectError(Throwable cause)
cause
- the causevoid onWebSocketError(Throwable cause)
cause
- the causeCopyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.