public class JSPackagerWebSocketClient
extends java.lang.Object
implements okhttp3.ws.WebSocketListener
Modifier and Type | Class and Description |
---|---|
static interface |
JSPackagerWebSocketClient.JSPackagerCallback |
Constructor and Description |
---|
JSPackagerWebSocketClient(java.lang.String url,
JSPackagerWebSocketClient.JSPackagerCallback callback) |
Modifier and Type | Method and Description |
---|---|
void |
closeQuietly() |
void |
connect() |
void |
onClose(int code,
java.lang.String reason) |
void |
onFailure(java.io.IOException e,
okhttp3.Response response) |
void |
onMessage(okhttp3.ResponseBody response) |
void |
onOpen(okhttp3.ws.WebSocket webSocket,
okhttp3.Response response) |
void |
onPong(okio.Buffer payload) |
public JSPackagerWebSocketClient(java.lang.String url, JSPackagerWebSocketClient.JSPackagerCallback callback)
public void connect()
public void closeQuietly()
public void onMessage(okhttp3.ResponseBody response) throws java.io.IOException
onMessage
in interface okhttp3.ws.WebSocketListener
java.io.IOException
public void onFailure(java.io.IOException e, okhttp3.Response response)
onFailure
in interface okhttp3.ws.WebSocketListener
public void onOpen(okhttp3.ws.WebSocket webSocket, okhttp3.Response response)
onOpen
in interface okhttp3.ws.WebSocketListener
public void onClose(int code, java.lang.String reason)
onClose
in interface okhttp3.ws.WebSocketListener
public void onPong(okio.Buffer payload)
onPong
in interface okhttp3.ws.WebSocketListener