Class AhcWebSocketConduit.AhcWebSocketListener

  • All Implemented Interfaces:
    org.asynchttpclient.ws.WebSocketListener
    Enclosing class:
    AhcWebSocketConduit

    protected class AhcWebSocketConduit.AhcWebSocketListener
    extends Object
    implements org.asynchttpclient.ws.WebSocketListener
    • Constructor Detail

      • AhcWebSocketListener

        protected AhcWebSocketListener()
    • Method Detail

      • onOpen

        public void onOpen​(org.asynchttpclient.ws.WebSocket ws)
        Specified by:
        onOpen in interface org.asynchttpclient.ws.WebSocketListener
      • onClose

        public void onClose​(org.asynchttpclient.ws.WebSocket ws,
                            int code,
                            String reason)
        Specified by:
        onClose in interface org.asynchttpclient.ws.WebSocketListener
      • onError

        public void onError​(Throwable t)
        Specified by:
        onError in interface org.asynchttpclient.ws.WebSocketListener
      • onBinaryFrame

        public void onBinaryFrame​(byte[] payload,
                                  boolean finalFragment,
                                  int rsv)
        Specified by:
        onBinaryFrame in interface org.asynchttpclient.ws.WebSocketListener
      • onTextFrame

        public void onTextFrame​(String payload,
                                boolean finalFragment,
                                int rsv)
        Specified by:
        onTextFrame in interface org.asynchttpclient.ws.WebSocketListener