MCPcopy Index your code
hub / github.com/python-websockets/websockets / sendall

Method sendall

src/websockets/sync/client.py:621–627  ·  view source on GitHub ↗
(self, data: BytesLike)

Source from the content-addressed store, hash-verified

619 return self.run_io(self.ssl_object.write, data)
620
621 def sendall(self, data: BytesLike) -> None:
622 # adapted from ssl_module.SSLSocket.sendall()
623 count = 0
624 with memoryview(data) as view, view.cast("B") as byte_view:
625 amount = len(byte_view)
626 while count < amount:
627 count += self.send(byte_view[count:])
628
629 # recv_into(), recvfrom(), recvfrom_into(), sendto(), unwrap(), and the
630 # flags argument aren't implemented because websockets doesn't need them.

Callers 3

connect_http_proxyFunction · 0.45
run_ioMethod · 0.45
send_dataMethod · 0.45

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected