| Modifier and Type | Method and Description |
|---|---|
static WebSocket.PayloadType |
WebSocket.PayloadType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocket.PayloadType[] |
WebSocket.PayloadType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
okio.BufferedSink |
WebSocket.newMessageSink(WebSocket.PayloadType type)
Stream a message payload to the server of the specified {code type}.
|
void |
WebSocketListener.onMessage(okio.BufferedSource payload,
WebSocket.PayloadType type)
Called when a server message is received.
|
void |
WebSocket.sendMessage(WebSocket.PayloadType type,
okio.Buffer payload)
Send a message payload to the server of the specified
type. |
Copyright © 2015. All Rights Reserved.