MCPcopy Index your code
hub / github.com/websocket-client/websocket-client / _send

Method _send

websocket/_core.py:572–577  ·  view source on GitHub ↗
(self, data: Union[str, bytes])

Source from the content-addressed store, hash-verified

570 self.connected = False
571
572 def _send(self, data: Union[str, bytes]):
573 if self.sock is None:
574 raise WebSocketConnectionClosedException("socket is already closed.")
575 if self.dispatcher:
576 return self.dispatcher.send(self.sock, data)
577 return send(self.sock, data)
578
579 def _recv(self, bufsize):
580 try:

Callers 1

send_frameMethod · 0.95

Calls 3

sendFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected