Skip to main content

DataChannelOpenEvent

Fired by Dart when it opens a DataChannel for a control. Carry the channel id (Dart native port in embedded mode, monotonic u32 in muxed fallback) plus a user-defined channel_name so widgets that open several channels can dispatch.

Note: the field is channel_name, not name, because Event.name already carries the event's own name ("data_channel_open").

Inherits: Event

Properties

channel_idclass-attributeinstance-attribute

channel_id: int = 0

channel_nameclass-attributeinstance-attribute

channel_name: str = ''