onEvent property
Every event, before it is ringed — the hook a transport reduces with.
The socket transport mirrors baseUrl and environment from the info
channel into its handle file this way. The core stays ignorant of what
any channel means, which is what keeps a new channel from being a
change here.
Implementation
final void Function(String channel, Map<String, Object?> payload)? onEvent;