Skip to content
Lance edited this page May 7, 2013 · 22 revisions

Topics are made up of segments separated by /. Topics must start with / and can end with a wildcard.

Wildcards

It is possible to match several topics at once using wildcards. A topic pattern ending with /* has the meaning of matching a single topic segment. Patterns ending with /** will match all trailing topic segments.

  • /chat/* will match /chat/cars and /chat/dogs but will not match /chat/cars/bmw or chat/dogs/poodle
  • /chat/** will match /chat/cars, /chat/cars/bmw and chat/dogs/poodle
  • /** will match all topics

Techie Stuff

Under the hood, a topic is a grouping of 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