Skip to content
uklance edited this page Sep 25, 2012 · 22 revisions

Topics must start with a '/' character and can be wildcards.

Wildcard Topics

  • ** 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

Techie Stuff

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.

Clone this wiki locally