Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
topics: * |
Method Summary
Public Methods | ||
public |
Check if topic exists
|
|
public |
Subscribe once to a given topic
|
|
public |
Publish some data on a topic
|
|
public |
Remove a topic (and all its listeners)
|
|
public |
Subscribe to a given topic
|
|
public |
unsubscribe(topic: String, listener: Function) Unsubscribe to a given topic
|
Public Constructors
public constructor source
Public Members
public topics: * source
Public Methods
public has(topic: String): Boolean source
Check if topic exists
Params:
Name | Type | Attribute | Description |
topic | String | The topic name |
public publish(topic: String, args: ...[type]) source
Publish some data on a topic
Params:
Name | Type | Attribute | Description |
topic | String | The topic identifier |
|
args | ...[type] | A vriable list of arguments to pass to the listeners |
public remove(topic: String) source
Remove a topic (and all its listeners)
Params:
Name | Type | Attribute | Description |
topic | String | The topic identifier to remove |