public class WebSocketAdapter extends Object implements okhttp3.ws.WebSocketListener
| Constructor and Description |
|---|
WebSocketAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(int code,
String reason) |
void |
onFailure(IOException e,
okhttp3.Response response) |
void |
onMessage(okhttp3.ResponseBody message) |
void |
onOpen(okhttp3.ws.WebSocket webSocket,
okhttp3.Response response) |
void |
onPong(okio.Buffer payload) |
public void onOpen(okhttp3.ws.WebSocket webSocket,
okhttp3.Response response)
onOpen in interface okhttp3.ws.WebSocketListenerpublic void onFailure(IOException e, okhttp3.Response response)
onFailure in interface okhttp3.ws.WebSocketListenerpublic void onMessage(okhttp3.ResponseBody message)
throws IOException
onMessage in interface okhttp3.ws.WebSocketListenerIOExceptionpublic void onPong(okio.Buffer payload)
onPong in interface okhttp3.ws.WebSocketListenerpublic void onClose(int code,
String reason)
onClose in interface okhttp3.ws.WebSocketListenerCopyright © 2017 Red Hat, Inc. All Rights Reserved.