src/main/java/zoot/tube/websocketserver/Server.java
/**
     * Sends a message to through the web socket.
     * <p>
     * Note: This server only allows a single connection at a time,
     * so the message will be sent only to the current connection.
     *
     * @param message the message to send.
     * @return true if the message was sent, otherwise false.
     */
Sends a message to through the web socket.

Note: This server only allows a single connection at a time,
so the message will be sent only to the current connection.

@param message the message to send.
@return true if the message was sent, otherwise false.
Sends a message to through the web socket . Note : This server only allows a single connection at a time so the message will be sent only to the current connection . @param message the message to send . @return true if the message was sent otherwise false .
public boolean sendMessage(String message) {
        if (this.conn == null) {
            System.out.println("There is no connection to send to.");
            return false;
        }
        this.conn.send(message);
        return true;
    }
public boolean sendMessage ( String message ) { if ( this . conn == null ) { System . out . println ( "There is no connection to send to." ) ; return false ; } this . conn . send ( message ) ; return true ; }
Sends a message to through the web socket.
Sends a message to through the web socket .