public static class WebSockets.Listener
extends java.lang.Object
implements com.squareup.okhttp.ws.WebSocketListener
| Constructor and Description |
|---|
Listener(WebSockets.SocketListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(int code,
java.lang.String reason) |
void |
onFailure(java.io.IOException e,
com.squareup.okhttp.Response res) |
void |
onMessage(com.squareup.okhttp.ResponseBody body) |
void |
onOpen(com.squareup.okhttp.ws.WebSocket webSocket,
com.squareup.okhttp.Response response) |
void |
onPong(okio.Buffer payload) |
public Listener(WebSockets.SocketListener listener)
public void onOpen(com.squareup.okhttp.ws.WebSocket webSocket,
com.squareup.okhttp.Response response)
onOpen in interface com.squareup.okhttp.ws.WebSocketListenerpublic void onMessage(com.squareup.okhttp.ResponseBody body)
throws java.io.IOException
onMessage in interface com.squareup.okhttp.ws.WebSocketListenerjava.io.IOExceptionpublic void onPong(okio.Buffer payload)
onPong in interface com.squareup.okhttp.ws.WebSocketListenerpublic void onClose(int code,
java.lang.String reason)
onClose in interface com.squareup.okhttp.ws.WebSocketListenerpublic void onFailure(java.io.IOException e,
com.squareup.okhttp.Response res)
onFailure in interface com.squareup.okhttp.ws.WebSocketListenerCopyright © 2019. All rights reserved.