src/main/java/zoot/tube/websocketserver/Server.java
/**
     * Runs whenever a web socket connection gets closed to this server.
     *
     * @param conn   the connection that is closing.
     * @param code   the closing code?
     * @param reason the reason?
     * @param remote no clue.
     */
Runs whenever a web socket connection gets closed to this server.
@param conn   the connection that is closing.
@param code   the closing code.
@param reason the reason.
@param remote no clue.
Runs whenever a web socket connection gets closed to this server . @param conn the connection that is closing . @param code the closing code . @param reason the reason . @param remote no clue .
@Override
    public void onClose(WebSocket conn, int code, String reason, boolean remote) {
        if (this.conn == conn) {
            this.conn = null;
        }
        System.out.println(String.format("Connection closed to: %s", conn.getRemoteSocketAddress()));
        conn.close();
    }
@ Override public void onClose ( WebSocket conn , int code , String reason , boolean remote ) { if ( this . conn == conn ) { this . conn = null ; } System . out . println ( String . format ( "Connection closed to: %s" , conn . getRemoteSocketAddress ( ) ) ) ; conn . close ( ) ; }
Runs whenever a web socket connection gets closed to this server.
Runs whenever a web socket connection gets closed to this server .