How can I deliver some data to server side while subscribing to server?
As an example,
When I subscribing /alert/12345, I want to send some other information such as alert_type, date_time etc to CometD server.
How can I deliver some data to server side while subscribing to server?
As an example,
When I subscribing /alert/12345, I want to send some other information such as alert_type, date_time etc to CometD server.
Copyright © 2021 Jogjafile Inc.
You can pass a
data
map in subscribe:But as far as I could see, you can only get a reference to the data map in
org.cometd.bayeux.server.Authorizer
. I couldn't get it viaorg.cometd.bayeux.server.BayeuxServer.SubscriptionListener
because there is no reference to theServerMessage
.You can see my use of it here: