Send a binary message (OPCODE_BINARY). Parameters ---------- payload: bytes payload of message to send.
(self, payload: bytes)
| 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 | """ |