-
Notifications
You must be signed in to change notification settings - Fork 3
Topics
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.
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
orchat/dogs/poodle
-
/chat/**
will match/chat/cars
,/chat/cars/bmw
andchat/dogs/poodle
-
/**
will match all topics
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.