MessageChannel class

The interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two MessagePort properties. Note: This feature is available in Web Workers

Available extensions
Annotations
  • @JS.new()
  • @staticInterop

Constructors

MessageChannel()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
port1 → MessagePort

Available on MessageChannel, provided by the PropsMessageChannel extension

no setter
port2 → MessagePort

Available on MessageChannel, provided by the PropsMessageChannel extension

no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited