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

Method send2

mitmproxy/proxy/layers/websocket.py:77–79  ·  view source on GitHub ↗
(self, event: wsproto.events.Event)

Source from the content-addressed store, hash-verified

75 self.frame_buf = [b""]
76
77 def send2(self, event: wsproto.events.Event) -> commands.SendData:
78 data = self.send(event)
79 return commands.SendData(self.conn, data)
80
81 def __repr__(self):
82 return f"WebsocketConnection<{self.state.name}, {self.conn}>"

Callers 1

relay_messagesMethod · 0.80

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected