Class: Topic

Streaming~Topic

new Topic(steaming, name)

Streaming API topic class
Parameters:
Name Type Description
steaming Streaming Streaming API object
name String Topic name
Source:

Methods

subscribe(listener) → {Subscription}

Subscribe listener to topic
Parameters:
Name Type Description
listener Callback.<Streaming~StreamingMesasge> Streaming message listener
Source:
Returns:
- Faye subscription object
Type
Subscription

unsubscribe(listener) → {Streaming~Topic}

Unsubscribe listener from topic
Parameters:
Name Type Description
listener Callback.<Streaming~StreamingMesasge> Streaming message listener
Source:
Returns:
Type
Streaming~Topic