Hi,
I am trying to work on a real time application where web client would register to listen on a topic (by topic i mean a server address where the server publishes messages to).
So this is fine, now I would like to just publish messages at the server side and when reaching the border of the bridge I would like have some handler, hook, whatever... that I could try to do some validation as follows: given the sessionId of the socket, run some code that verifies if the user associated with that session can or not receive this message.
So my issue is that i cannot do async calls in the hook... anyone has an idea on how to accomplish this?