Binding Multiple Events

41 views
Skip to first unread message

Jeff

unread,
Sep 16, 2011, 6:37:20 PM9/16/11
to Socket.IO
Is it possible to bind multiple events at the same time?

i.e.

Socket.on("event1 event2", somefunction);

instead of

Socket.on("event1", somefunction);
Socket.on("event2", somefunction);

Arnout Kazemier

unread,
Sep 16, 2011, 7:01:48 PM9/16/11
to sock...@googlegroups.com
Nope, the node core doesn't support it, so we don't either.

Jeff

unread,
Sep 16, 2011, 7:08:22 PM9/16/11
to Socket.IO
Thanks for the quick response!
Reply all
Reply to author
Forward
0 new messages