src/main/java/zoot/tube/websocketserver/Server.java
/**
     * Runs whenever this server receives a message through the web socket.
     *
     * @param conn    the connection that sent the message.
     * @param message the message.
     */
Runs whenever this server receives a message through the web socket.
@param conn    the connection that sent the message.
@param message the message.
Runs whenever this server receives a message through the web socket . @param conn the connection that sent the message . @param message the message .
@Override
    public void onMessage(WebSocket conn, String message) {
        this.messageHandlers.forEach((messageHandler) -> messageHandler.accept(message));
        System.out.println(String.format("[DEBUG] Server: Message from: %s | %s", conn.getRemoteSocketAddress(), message));
    }
@ Override public void onMessage ( WebSocket conn , String message ) { this . messageHandlers . forEach ( ( messageHandler ) -> messageHandler . accept ( message ) ) ; System . out . println ( String . format ( "[DEBUG] Server: Message from: %s | %s" , conn . getRemoteSocketAddress ( ) , message ) ) ; }
Runs whenever this server receives a message through the web socket.
Runs whenever this server receives a message through the web socket .