public class WSMessageListener
extends java.lang.Object
implements org.asynchttpclient.ws.WebSocketListener
| Constructor and Description |
|---|
WSMessageListener(com.google.gson.Gson gson,
StreamingEventHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(org.asynchttpclient.ws.WebSocket websocket) |
void |
onClose(org.asynchttpclient.ws.WebSocket websocket,
int code,
java.lang.String reason) |
void |
onError(java.lang.Throwable t) |
void |
onOpen(org.asynchttpclient.ws.WebSocket websocket) |
void |
onTextFrame(java.lang.String message,
boolean finalFragment,
int rsv) |
public WSMessageListener(com.google.gson.Gson gson,
StreamingEventHandler handler)
public void onTextFrame(java.lang.String message,
boolean finalFragment,
int rsv)
onTextFrame in interface org.asynchttpclient.ws.WebSocketListenerpublic void onOpen(org.asynchttpclient.ws.WebSocket websocket)
onOpen in interface org.asynchttpclient.ws.WebSocketListenerpublic void onClose(org.asynchttpclient.ws.WebSocket websocket)
public void onClose(org.asynchttpclient.ws.WebSocket websocket,
int code,
java.lang.String reason)
onClose in interface org.asynchttpclient.ws.WebSocketListenerpublic void onError(java.lang.Throwable t)
onError in interface org.asynchttpclient.ws.WebSocketListener