Interface WebSocketReceivedMessageCallback

    • Method Detail

      • onReceivedMessage

        void onReceivedMessage​(WebSocket webSocket,
                               WebSocketMessage message)
                        throws java.lang.Exception
        The method that is invoked when a WebSocket message arrives from the server.
        Parameters:
        webSocket - The WebSocket that received the message.
        message - The WebSocketMessage that was received from the server
        Throws:
        java.lang.Exception - An error occurred