Class ClientCli.ClientEndpoint

  • Enclosing class:
    ClientCli

    public static class ClientCli.ClientEndpoint
    extends java.lang.Object
    Client side endpoint, prints everything into given console.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClientEndpoint​(jline.console.ConsoleReader console)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onClose​(jakarta.websocket.CloseReason closeReason)  
      void onError​(java.lang.Throwable th)  
      void onMessage​(byte[] buffer)  
      void onMessage​(jakarta.websocket.PongMessage pongMessage)  
      void onMessage​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClientEndpoint

        public ClientEndpoint​(jline.console.ConsoleReader console)
    • Method Detail

      • onMessage

        public void onMessage​(java.lang.String s)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • onMessage

        public void onMessage​(byte[] buffer)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • onError

        public void onError​(java.lang.Throwable th)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • onClose

        public void onClose​(jakarta.websocket.CloseReason closeReason)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • onMessage

        public void onMessage​(jakarta.websocket.PongMessage pongMessage)
                       throws java.io.IOException
        Throws:
        java.io.IOException