proxy.http.websocket.plugin module#

⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging.

  1. 2013-present by Abhinav Singh and contributors.


BSD, see LICENSE for more details.

class proxy.http.websocket.plugin.WebSocketTransportBasePlugin(flags: argparse.Namespace, client: HttpClientConnection, event_queue: proxy.core.event.queue.EventQueue)[source]#

Bases: abc.ABC

Abstract class for plugins extending dashboard websocket API.

_abc_impl = <_abc._abc_data object>#
connected() None[source]#

Invoked when client websocket handshake finishes.

disconnected() None[source]#

Invoked when client websocket connection gets closed.

abstract handle_message(message: Dict[str, Any]) None[source]#

Handle messages for registered methods.

abstract methods() List[str][source]#

Return list of methods that this plugin will handle.

reply(data: Dict[str, Any]) None[source]#