MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / websocket_end

Method websocket_end

examples/contrib/jsondump.py:254–263  ·  view source on GitHub ↗

Dump websocket messages once the connection ends. Alternatively, you can replace `websocket_end` with `websocket_message` if you want the messages to be dumped one at a time with full metadata. Warning: this takes up _a lot_ of space.

(self, flow)

Source from the content-addressed store, hash-verified

252 self.queue.put(flow.get_state())
253
254 def websocket_end(self, flow):
255 """
256 Dump websocket messages once the connection ends.
257
258 Alternatively, you can replace `websocket_end` with
259 `websocket_message` if you want the messages to be
260 dumped one at a time with full metadata. Warning:
261 this takes up _a lot_ of space.
262 """
263 self.queue.put(flow.get_state())
264
265
266addons = [JSONDumper()] # pylint: disable=invalid-name

Callers

nothing calls this directly

Calls 2

putMethod · 0.45
get_stateMethod · 0.45

Tested by

no test coverage detected