public final class ReconnectingWebSocket
extends expolib_v1.okhttp3.WebSocketListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReconnectingWebSocket.ConnectionCallback |
static interface |
ReconnectingWebSocket.MessageCallback |
| Constructor and Description |
|---|
ReconnectingWebSocket(java.lang.String url,
ReconnectingWebSocket.MessageCallback messageCallback,
ReconnectingWebSocket.ConnectionCallback connectionCallback) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeQuietly() |
void |
connect() |
void |
onClosed(expolib_v1.okhttp3.WebSocket webSocket,
int code,
java.lang.String reason) |
void |
onFailure(expolib_v1.okhttp3.WebSocket webSocket,
java.lang.Throwable t,
expolib_v1.okhttp3.Response response) |
void |
onMessage(expolib_v1.okhttp3.WebSocket webSocket,
expolib_v1.okio.ByteString bytes) |
void |
onMessage(expolib_v1.okhttp3.WebSocket webSocket,
java.lang.String text) |
void |
onOpen(expolib_v1.okhttp3.WebSocket webSocket,
expolib_v1.okhttp3.Response response) |
void |
sendMessage(expolib_v1.okio.ByteString message) |
void |
sendMessage(java.lang.String message) |
public ReconnectingWebSocket(java.lang.String url,
ReconnectingWebSocket.MessageCallback messageCallback,
ReconnectingWebSocket.ConnectionCallback connectionCallback)
public void connect()
public void closeQuietly()
public void onOpen(expolib_v1.okhttp3.WebSocket webSocket,
expolib_v1.okhttp3.Response response)
onOpen in class expolib_v1.okhttp3.WebSocketListenerpublic void onFailure(expolib_v1.okhttp3.WebSocket webSocket,
java.lang.Throwable t,
expolib_v1.okhttp3.Response response)
onFailure in class expolib_v1.okhttp3.WebSocketListenerpublic void onMessage(expolib_v1.okhttp3.WebSocket webSocket,
java.lang.String text)
onMessage in class expolib_v1.okhttp3.WebSocketListenerpublic void onMessage(expolib_v1.okhttp3.WebSocket webSocket,
expolib_v1.okio.ByteString bytes)
onMessage in class expolib_v1.okhttp3.WebSocketListenerpublic void onClosed(expolib_v1.okhttp3.WebSocket webSocket,
int code,
java.lang.String reason)
onClosed in class expolib_v1.okhttp3.WebSocketListenerpublic void sendMessage(java.lang.String message)
throws java.io.IOException
java.io.IOExceptionpublic void sendMessage(expolib_v1.okio.ByteString message)
throws java.io.IOException
java.io.IOException