Interface ProxyWebSocket


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

      • sendTextMessage

        void sendTextMessage​(java.lang.String message,
                             Direction direction)
        This method allows an extension to send a text message via the WebSocket to either the client or the server.
        Parameters:
        message - The message to be sent.
        direction - The direction of the message.
      • close

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

        Registration registerHandler​(ProxyWebSocketHandler handler)
        This method is used to register a handler which will perform actions when messages are sent or received by the WebSocket.
        Parameters:
        handler - An object created by the extension that implements ProxyWebSocketHandler interface.
        Returns:
        The Registration for the handler.