WAMessagePort class

Message port for bidirectional communication between main thread and worklet. Mirrors Web Audio API MessagePort on AudioWorkletNode.

Constructors

WAMessagePort({required int nodeId, required WAWorklet worklet})
Creates a new message port for the given node.

Properties

hashCode int
The hash code for this object.
no setterinherited
onMessage ↔ void Function(dynamic)?
Callback for messages received from the processor (audio → main thread).
getter/setter pair
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
postMessage(dynamic message) → void
Send a message to the processor (main → audio thread).
toString() String
A string representation of this object.
inherited

Operators

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