Skip to content

07. Topics

Roger Zaragoza edited this page Nov 11, 2016 · 1 revision

Topics

Topic objects implement a pub/sub paradigm.

Sessions subscribe to the paths they are interested with calls to topic.sub passing a pipeid (see pipe).

Other sessions publish messages to a path that all subscribers will receive. This is done with calls to topic.pub.

When a session is no longer interested in a topic it unsubscribes from it with a call to topic.unsub.

Clone this wiki locally