Rxmq
Rxmq message bus class
Constructor Summary
| Public Constructor | ||
| public |
Represents a new Rxmq message bus. |
|
Member Summary
| Private Members | ||
| private |
[prop]: * Hide from esdoc |
|
| private |
Holds channel plugins definitions |
|
| private |
Holds channels definitions |
|
Method Summary
| Public Methods | ||
| public |
Returns a channel for given name |
|
| public |
registerChannelPlugin(plugin: Object): void Register new Channel plugin |
|
| public |
registerPlugin(plugin: Object): void Register new Rxmq plugin |
|
Public Constructors
public constructor() source
Represents a new Rxmq message bus. Normally you'd just use a signleton returned by default, but it's also possible to create a new instance of Rxmq should you need it.
Example:
import {Rxmq} from 'rxmq';
const myRxmq = new Rxmq();
Private Members
Public Methods
public channel(name: String): Channel source
Returns a channel for given name
Params:
| Name | Type | Attribute | Description |
| name | String | Channel name |
Example:
const testChannel = rxmq.channel('test');
