Interface WebSockets
public interface WebSockets
Provides access to WebSocket related functionality of Burp.
-
Method Summary
Modifier and TypeMethodDescriptioncreateWebSocket(HttpService service, String path) Create a new WebSocket using the specified service and path.createWebSocket(HttpRequest upgradeRequest) Create a new WebSocket using the specified upgrade request.Register a handler which will be invoked whenever a WebSocket is created by any Burp tool.
-
Method Details
-
registerWebSocketCreatedHandler
Register a handler which will be invoked whenever a WebSocket is created by any Burp tool.- Parameters:
handler- An object created by the extension that implementsWebSocketCreatedHandlerinterface.- Returns:
- The
Registrationfor the handler.
-
createWebSocket
Create a new WebSocket using the specified service and path.- Parameters:
service- AnHttpServicespecifying the target hostpath- path for the upgrade HTTP request- Returns:
- The
ExtensionWebSocketCreationresult.
-
createWebSocket
Create a new WebSocket using the specified upgrade request.- Parameters:
upgradeRequest- TheHttpRequestupgrade request- Returns:
- The
ExtensionWebSocketCreationresult.
-