Subscribe to a STOMP Queue
- Subscribing to a specific topic
- Only org or user level topic subscriptions allowed.Examples below
- Eg : /topic/org/{orgid}/ticket.* , /topic/org/{orgid}.#, /topic/user/{userid}/tickets.* , /topic/user/{userid}.*
- Appropriate permissions are required to subscribe to org level topics.
- You can subscribe to durable and non-durable queues.
- Every user can only subscribe to one durable queue.
SUBSCRIBE Headers: Non-Durable Queue
Id |
id |
Subscription id.If you do not pass in any value,
stomp auto generates an id and assigns it to the subscription. |
No |
String |
1234 |
SUBSCRIBE Headers: Durable Queue
Id |
id |
Subscription id.Should match your userid |
Yes |
String |
65884 |
Queue Name |
x-queue-name |
Queue name.Should match your userid |
Yes |
String |
65884 |
Durable |
durable |
boolean flag to create a durable queue.Set this to true to create a durable queue. |
Yes |
boolean |
true |
Auto Delete |
auto-delete |
boolean flag to save messages in queue during client downtime.Set this to false to make sure messages are sustained during disconnects. |
Yes |
boolean |
false |