Class StreamCreatingWebSocketTextListener
- java.lang.Object
-
- ch.squaredesk.nova.comm.websockets.client.StreamCreatingWebSocketTextListener
-
- All Implemented Interfaces:
StreamCreatingEndpointWrapper<com.ning.http.client.ws.WebSocket>,com.ning.http.client.ws.WebSocketCloseCodeReasonListener,com.ning.http.client.ws.WebSocketListener,com.ning.http.client.ws.WebSocketTextListener
public class StreamCreatingWebSocketTextListener extends Object implements com.ning.http.client.ws.WebSocketTextListener, com.ning.http.client.ws.WebSocketCloseCodeReasonListener, StreamCreatingEndpointWrapper<com.ning.http.client.ws.WebSocket>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.reactivex.Flowable<ch.squaredesk.nova.tuples.Pair<com.ning.http.client.ws.WebSocket,CloseReason>>closingSockets()io.reactivex.Flowable<com.ning.http.client.ws.WebSocket>connectingSockets()io.reactivex.Flowable<ch.squaredesk.nova.tuples.Pair<com.ning.http.client.ws.WebSocket,Throwable>>errors()io.reactivex.Flowable<ch.squaredesk.nova.tuples.Pair<com.ning.http.client.ws.WebSocket,String>>messages()voidonClose(com.ning.http.client.ws.WebSocket websocket)voidonClose(com.ning.http.client.ws.WebSocket websocket, int code, String reason)voidonError(Throwable t)voidonMessage(String messageText)voidonOpen(com.ning.http.client.ws.WebSocket websocket)
-
-
-
Method Detail
-
onMessage
public void onMessage(String messageText)
- Specified by:
onMessagein interfacecom.ning.http.client.ws.WebSocketTextListener
-
onOpen
public void onOpen(com.ning.http.client.ws.WebSocket websocket)
- Specified by:
onOpenin interfacecom.ning.http.client.ws.WebSocketListener
-
onClose
public void onClose(com.ning.http.client.ws.WebSocket websocket)
- Specified by:
onClosein interfacecom.ning.http.client.ws.WebSocketListener
-
onClose
public void onClose(com.ning.http.client.ws.WebSocket websocket, int code, String reason)- Specified by:
onClosein interfacecom.ning.http.client.ws.WebSocketCloseCodeReasonListener
-
onError
public void onError(Throwable t)
- Specified by:
onErrorin interfacecom.ning.http.client.ws.WebSocketListener
-
messages
public io.reactivex.Flowable<ch.squaredesk.nova.tuples.Pair<com.ning.http.client.ws.WebSocket,String>> messages()
- Specified by:
messagesin interfaceStreamCreatingEndpointWrapper<com.ning.http.client.ws.WebSocket>
-
connectingSockets
public io.reactivex.Flowable<com.ning.http.client.ws.WebSocket> connectingSockets()
- Specified by:
connectingSocketsin interfaceStreamCreatingEndpointWrapper<com.ning.http.client.ws.WebSocket>
-
closingSockets
public io.reactivex.Flowable<ch.squaredesk.nova.tuples.Pair<com.ning.http.client.ws.WebSocket,CloseReason>> closingSockets()
- Specified by:
closingSocketsin interfaceStreamCreatingEndpointWrapper<com.ning.http.client.ws.WebSocket>
-
errors
public io.reactivex.Flowable<ch.squaredesk.nova.tuples.Pair<com.ning.http.client.ws.WebSocket,Throwable>> errors()
- Specified by:
errorsin interfaceStreamCreatingEndpointWrapper<com.ning.http.client.ws.WebSocket>
-
-