public interface WebSocketListener
WebSocket.| Modifier and Type | Method and Description |
|---|---|
void |
onClose(int code,
String reason)
Called when the server sends a close message.
|
void |
onFailure(IOException e)
Called when the transport-layer of this web socket errors during
communication.
|
void |
onMessage(okio.BufferedSource payload,
WebSocket.PayloadType type)
Called when a server message is received.
|
void onMessage(okio.BufferedSource payload,
WebSocket.PayloadType type)
throws IOException
type indicates whether the
payload should be interpreted as UTF-8 text or binary data.IOExceptionvoid onClose(int code,
String reason)
close() or as an unprompted
message from the server.code - The
void onFailure(IOException e)
Copyright © 2015. All rights reserved.