W3cubDocs

/Angular

ServiceMessageBrokerFactory

interface experimental

npm Package @angular/platform-webworker
Module import { ServiceMessageBrokerFactory } from '@angular/platform-webworker';
Source platform-webworker/src/web_workers/shared/service_message_broker.ts

Interface Overview

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

Members

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

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

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