Package burp.api.montoya.websocket
Interface WebSocket
-
public interface WebSocketThis interface represents a WebSocket within Burp.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()This method will close the WebSocket.RegistrationregisterHandler(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.voidsendTextMessage(java.lang.String message)This method allows an extension to send a text message via the WebSocket.
-
-
-
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 implementsWebSocketHandlerinterface.- Returns:
- The
Registrationfor the handler.
-
-