Can I read anywhere who hook.io distributes events?

31 views
Skip to first unread message

K.

unread,
Feb 20, 2012, 9:13:13 AM2/20/12
to hoo...@googlegroups.com
Does the "main hook" make a "broadcast" for every event or just a "multicast" to every hook that called the on() method for this event? 

Jeremy Darling

unread,
Feb 20, 2012, 10:20:39 AM2/20/12
to hoo...@googlegroups.com
If you take a look at the hook.io source code the answer is yes.  Basically it depends on the event type, but in general, a multicast for each event is sent only to registered listeners.  Under the hood the OS may decide that it is more appropriate to perform a broadcast rather than a multicast.

 - Jeremy
Reply all
Reply to author
Forward
0 new messages