Server-side channel subscribing and unsubscribing Client

29 views
Skip to first unread message

Angel Oliver

unread,
Aug 29, 2013, 10:01:24 AM8/29/13
to action...@googlegroups.com

Add User 
api.faye.server._server._engine._engine._channels[user_id] = user_id

Remove 
var channel_id = '/delete/user/channel';

var ch = api.faye.server._server._engine._engine._channels
var cl = api.faye.server._server._engine._engine._clients

delete ch[channel_id][user_id];
delete cl[user_id]['_index'][channel_id];

Evan Tahler

unread,
Aug 29, 2013, 2:14:30 PM8/29/13
to action...@googlegroups.com
I'm not quite sure what you are asking for here.  ActionHero generally abstracts faye's channels aways.

Norman Paniagua

unread,
Aug 29, 2013, 2:39:05 PM8/29/13
to Evan Tahler, action...@googlegroups.com
Seems that he want to know if there is a better way to subscribe / unsubscribe users from the server side, because this way the user only get removed from the server, but in the client side it thinks that sill connected, maybe?

---

Norman Paniagua


2013/8/29 Evan Tahler <evant...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "actionHero.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to actionhero-j...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages