Package burp.api.montoya.websocket
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 implementsWebSocketCreatedHandler
interface.- Returns:
- The
Registration
for the handler.
-
createWebSocket
Create a new WebSocket using the specified service and path.- Parameters:
service
- AnHttpService
specifying the target hostpath
- path for the upgrade HTTP request- Returns:
- The
ExtensionWebSocketCreation
result.
-
createWebSocket
Create a new WebSocket using the specified upgrade request.- Parameters:
upgradeRequest
- TheHttpRequest
upgrade request- Returns:
- The
ExtensionWebSocketCreation
result.
-