SharedWorker$Typings extension
- on
Properties
-
addEventListener
→ ({void Function<
K$ extends Event>(AbstractWorkerEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on SharedWorker, provided by the SharedWorker$Typings extension
Overload accessor: $1, $2no setter - port → MessagePort
-
Available on SharedWorker, provided by the SharedWorker$Typings extension
Returns sharedWorker's MessagePort object which can be used to communicate with the global environment.no setter -
removeEventListener
→ ({void Function<
K$ extends Event>(AbstractWorkerEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on SharedWorker, provided by the SharedWorker$Typings extension
Overload accessor: $1, $2no setter