DataChannel
Abstract widget-facing byte channel.
Inherits: abc.ABC
Methods
Methods
on_bytesabstractmethod
on_bytes(
handler: Callable[[bytes], None] | None,
) -> NoneRegister a handler for bytes pushed from Dart. Pass None to
clear. The handler runs synchronously on whatever thread the
transport delivers from — push heavy work to a queue/worker.