Interface WebSocket


  • public interface WebSocket
    This interface represents a WebSocket within Burp.
    • Method Detail

      • sendTextMessage

        void sendTextMessage​(java.lang.String message)
        This method allows an extension to send a text message via the WebSocket.
        Parameters:
        message - The message to be sent.
      • close

        void close()
        This method will close the WebSocket.
      • registerHandler

        Registration registerHandler​(WebSocketHandler handler)
        This method is used to register a handler which will perform an action when a message is sent to or received from the application.
        Parameters:
        handler - An object created by the extension that implements WebSocketHandler interface.
        Returns:
        The Registration for the handler.