-
Notifications
You must be signed in to change notification settings - Fork 3
Topics
uklance edited this page Sep 25, 2012
·
22 revisions
Topics must start with a '/' character and can be wildcards.
- ** can be used at the end of a topic to match all subtopics
- * can be used at the end of a topic to match all subtopics in the next level
eg:
- /chat/** will match /chat/cars and /chat/cars/bmw
- /chat/* will match /chat/cars but WILL NOT MATCH /chat/cars/bmw
- /** will match all topics
Under the hood, a topic is a [grouping] of (https://github.com/uklance/tapestry-cometd/blob/master/src/main/java/org/lazan/t5/cometd/services/CometdGlobals.java) CometD channels. This abstraction allows multiple PushTargets to subscribe to the same topic but apply different actions and formatting to the messages.