Package jline.cli

Class LineWebSocketClient

  • All Implemented Interfaces:
    java.lang.Runnable , org.java_websocket.WebSocket , org.java_websocket.WebSocketListener

    
    public class LineWebSocketClient
    extends WebSocketClient
                        

    LineWebSocketClient is a WebSocket client used to communicate with the LINE Solver server. It extends the WebSocketClient class and provides methods for connecting to the server and sending messages.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      LineWebSocketClient(URI serverURI, String msg) Constructs a new LineWebSocketClient instance.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void main(Array<String> args) The main method, which serves as the entry point for the program.
      void onClose(int code, String reason, boolean remote)
      void onError(Exception ex)
      void onMessage(String message)
      void onOpen(ServerHandshake handshakedata)
      • Methods inherited from class org.java_websocket.client.WebSocketClient

        addHeader, clearHeaders, close, closeBlocking, closeConnection, connect, connectBlocking, getAttachment, getConnection, getConnections, getDraft, getLocalSocketAddress, getReadyState, getRemoteSocketAddress, getResourceDescriptor, getSSLSession, getSocket, getURI, hasBufferedData, hasSSLSupport, isClosed, isClosing, isFlushAndClose, isOpen, onCloseInitiated, onClosing, onSetSSLParameters, onWebsocketClose, onWebsocketCloseInitiated, onWebsocketClosing, onWebsocketError, onWebsocketMessage, onWebsocketOpen, onWriteDemand, reconnect, reconnectBlocking, removeHeader, run, send, sendFragmentedFrame, sendFrame, sendPing, setAttachment, setDnsResolver, setProxy, setSocket, setSocketFactory
      • Methods inherited from class org.java_websocket.AbstractWebSocket

        getConnectionLostTimeout, isReuseAddr, isTcpNoDelay, setConnectionLostTimeout, setReuseAddr, setTcpNoDelay, startConnectionLostTimer, stopConnectionLostTimer
      • Methods inherited from class org.java_websocket.WebSocketAdapter

        onPreparePing, onWebsocketHandshakeReceivedAsClient, onWebsocketHandshakeReceivedAsServer, onWebsocketHandshakeSentAsClient, onWebsocketPing, onWebsocketPong
      • Methods inherited from class java.lang.Object

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

      • LineWebSocketClient

        LineWebSocketClient(URI serverURI, String msg)
        Constructs a new LineWebSocketClient instance.
        Parameters:
        serverURI - the URI of the server to connect to.
        msg - the message to be sent to the server.
    • Method Detail

      • main

         static void main(Array<String> args)

        The main method, which serves as the entry point for the program. It processes command-line arguments and establishes a connection with the server.

        Parameters:
        args - command-line arguments specifying the server IP, port, and other options.
      • onClose

         void onClose(int code, String reason, boolean remote)
      • onOpen

         void onOpen(ServerHandshake handshakedata)