SharedWorker$Typings extension

on

Properties

addEventListener → ({void Function<K$ extends Event>(AbstractWorkerEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on SharedWorker, provided by the SharedWorker$Typings extension

Overload accessor: $1, $2
no 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<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on SharedWorker, provided by the SharedWorker$Typings extension

Overload accessor: $1, $2
no setter