Interface WebSocketClosedCallback

    • Method Detail

      • onClosed

        void onClosed​(WebSocket webSocket,
                      boolean closedByClient,
                      java.lang.String reason)
               throws java.lang.Exception
        The method that is invoked when a WebSocket is closed.
        Parameters:
        webSocket - The WebSocket that has been closed.
        closedByClient - true if the WebSocket was closed by the client, false if it was closed by the server.
        reason - The reason for closing the WebSocket.
        Throws:
        java.lang.Exception - An error occurred