This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

ServiceMessageBrokerFactory

      
      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
      
      createMessageBroker(channel: string, runInZone: boolean = true): ServiceMessageBroker
    

Parameters

channel

Type: string.

runInZone

Type: boolean.

Optional. Default is true.

Returns

ServiceMessageBroker