You can pass a data
map in subscribe:
cometd.subscribe(channelId, undefined, callback, { data: data })
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 via org.cometd.bayeux.server.BayeuxServer.SubscriptionListener
because there is no reference to the ServerMessage
.
You can see my use of it here: