MessageBus

MessageBus

Experimental Class

Class Overview

class MessageBus implements MessageBusSource,  MessageBusSink {
  initChannel(channel: string, runInZone?: boolean) : void
  attachToZone(zone: NgZone) : void
  from(channel: string) : EventEmitter<any>
  to(channel: string) : EventEmitter<any>
}

Class Description

Message Bus is a low level API used to communicate between the UI and the background. Communication is based on a channel abstraction. Messages published in a given channel to one MessageBusSink are received on the same channel by the corresponding MessageBusSource.