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

Method send_binary

websocket/_core.py:349–358  ·  view source on GitHub ↗

Send a binary message (OPCODE_BINARY). Parameters ---------- payload: bytes payload of message to send.

(self, payload: bytes)

Source from the content-addressed store, hash-verified

347 return length
348
349 def send_binary(self, payload: bytes) -> int:
350 """
351 Send a binary message (OPCODE_BINARY).
352
353 Parameters
354 ----------
355 payload: bytes
356 payload of message to send.
357 """
358 return self.send(payload, ABNF.OPCODE_BINARY)
359
360 def ping(self, payload: Union[str, bytes] = ""):
361 """

Callers 2

test_sendMethod · 0.95

Calls 1

sendMethod · 0.95

Tested by 2

test_sendMethod · 0.76