W3cubDocs

/Angular

ServiceMessageBrokerFactory

interface experimental

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

Methods

createMessageBroker()

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

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

Parameters

channel

Type: string.

runInZone

Type: boolean.

Optional. Default is true.

Returns

ServiceMessageBroker

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