channel library

Classes

Channel<T>
Async stream for inbound and outbound messages.
MessageEvent
WorkerChannel<T>
Channel used to communicate with the passed in Worker.
WorkerChannelCounterPart<T>
Specialisation of channel suitable for use in the client running main client thread.

Properties

onMessage dynamic
@JS('onmessage'), write-only

Functions

messageDeserializer<T>(Serializers serializer) → Function
Returns a Typed Message from the JSON string using the supplied serializer.
messageSerializer<T>(Serializers serializer) → Function
Returns a closure that produces a JSON String of the Typed message using the supplied serializer.
PostMessage(dynamic obj) → void
@JS('postMessage')