MessageChannel extension type
The MessageChannel
interface of the
Channel Messaging API
allows us to create a new message channel and send data through it via its
two MessagePort properties.
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Available extensions
Constructors
- MessageChannel()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- port1 → MessagePort
-
The
port1
read-only property of the MessageChannel interface returns the first port of the message channel — the port attached to the context that originated the channel.no setter - port2 → MessagePort
-
The
port2
read-only property of the MessageChannel interface returns the second port of the message channel — the port attached to the context at the other end of the channel, which the message is initially sent to.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