Skip to content
uklance edited this page Nov 15, 2012 · 22 revisions

Topics must start with a '/' character and end with a wildcard.

Wildcard Topic Patterns

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

eg:

  • /chat/* will match /chat/cars but WILL NOT MATCH /chat/cars/bmw
  • /chat/** will match /chat/cars and /chat/cars/bmw
  • /** 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