on_binary_data Event
Passes a received chunk of binary data to the application.
Syntax
class WebSocketServerBinaryDataEventParams(object): @property def connection_id() -> int: ... @property def buffer() -> bytes: ... @property def last() -> bool: ... # In class WebSocketServer: @property def on_binary_data() -> Callable[[WebSocketServerBinaryDataEventParams], None]: ... @on_binary_data.setter def on_binary_data(event_hook: Callable[[WebSocketServerBinaryDataEventParams], None]) -> None: ...
Remarks
The class fires this event repeatedly to pass incoming pieces of binary data to the application. The Last parameter indicates that this is the last chunk.