MCPcopy
hub / github.com/mitmproxy/mitmproxy / broadcast

Method broadcast

mitmproxy/tools/web/app.py:403–406  ·  view source on GitHub ↗
(cls, **kwargs)

Source from the content-addressed store, hash-verified

401
402 @classmethod
403 def broadcast(cls, **kwargs):
404 message = cls._json_dumps(kwargs)
405 for conn in cls.connections:
406 conn.send(message)
407
408 def send(self, message: bytes):
409 self._send_queue.put_nowait(message)

Callers 5

_sig_view_removeMethod · 0.80
_sig_events_addMethod · 0.80
_sig_events_refreshMethod · 0.80
_sig_options_updateMethod · 0.80
_sig_servers_changedMethod · 0.80

Calls 2

_json_dumpsMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected