Interface WebSocket
public interface WebSocket
WebSocket within Burp.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This method will close the WebSocket.registerMessageHandler(MessageHandler handler) Register a handler which will perform an action when a message is sent to or received from the application.voidsendBinaryMessage(ByteArray message) This method allows an extension to send a binary message via the WebSocket.voidsendTextMessage(String message) This method allows an extension to send a text message via the WebSocket.
-
Method Details
-
sendTextMessage
This method allows an extension to send a text message via the WebSocket.- Parameters:
message- The message to be sent.
-
sendBinaryMessage
This method allows an extension to send a binary message via the WebSocket.- Parameters:
message- The message to be sent.
-
close
void close()This method will close the WebSocket. -
registerMessageHandler
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 implementsMessageHandlerinterface.- Returns:
- The
Registrationfor the handler.
-