how to filter outbound bridge messages

47 views
Skip to first unread message

Paulo Lopes

unread,
May 16, 2014, 9:32:32 AM5/16/14
to ve...@googlegroups.com
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?

Nick Scavelli

unread,
May 16, 2014, 3:34:42 PM5/16/14
to ve...@googlegroups.com
Only thing I can think of is to extend EventBusBridge.

Jordan Halterman

unread,
May 16, 2014, 10:11:25 PM5/16/14
to ve...@googlegroups.com
I ran into the same issue a while back - using async calls in the event bus bridge hook - and basically ended up rolling my own event bus bridge in order to make authentication type things easier.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages