Class 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 Detail

      • onMessage

        public void onMessage​(String messageText)
        Specified by:
        onMessage in interface com.ning.http.client.ws.WebSocketTextListener
      • onOpen

        public void onOpen​(com.ning.http.client.ws.WebSocket websocket)
        Specified by:
        onOpen in interface com.ning.http.client.ws.WebSocketListener
      • onClose

        public void onClose​(com.ning.http.client.ws.WebSocket websocket)
        Specified by:
        onClose in interface com.ning.http.client.ws.WebSocketListener
      • onClose

        public void onClose​(com.ning.http.client.ws.WebSocket websocket,
                            int code,
                            String reason)
        Specified by:
        onClose in interface com.ning.http.client.ws.WebSocketCloseCodeReasonListener
      • onError

        public void onError​(Throwable t)
        Specified by:
        onError in interface com.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:
        messages in interface StreamCreatingEndpointWrapper<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:
        errors in interface StreamCreatingEndpointWrapper<com.ning.http.client.ws.WebSocket>