ServiceMessageBrokerFactory

From Get docs
< @angular/platform-webworkerAngular/docs/8/api/platform-webworker/servicemessagebrokerfactory


ServiceMessageBrokerFactory

interface deprecated

Deprecated: platform-webworker is deprecated in Angular and will be removed in version 10

interface ServiceMessageBrokerFactory {
  createMessageBroker(channel: string, runInZone: boolean = true): ServiceMessageBroker
}

Methods

Initializes the given channel and attaches a new ServiceMessageBroker to it.

createMessageBroker(channel: string, runInZone: boolean = true): ServiceMessageBroker

Parameters
channel string
runInZone boolean Optional. Default is true.
Returns

ServiceMessageBroker



© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v8.angular.io/api/platform-webworker/ServiceMessageBrokerFactory