>
> So yeah, I think that exposing a list will get us pretty far. The missing 
> piece, then, would be the ability for a a client to send a connection 
> request for a specific channel.
>

I'll be honest I'm a little hesitant to add any kind of room/subscription 
facilities to Sente itself...

My thinking currently goes:
* Far as I can tell (?), this is always _very_ easy to do application-side.
* Doing it application-side gives a lot more flexibility. For example, what 
if you've got multiple servers and want a distributed/db-backed 
subscription index?
* For general hygiene I prefer keeping state (like subscriptions) separate 
from the comms mechanism itself. Keeping subscription info in Sente makes 
it tricky to get to if you want to do something unexpected with it. When 
you control the shape+location of the relevant data/atom(s), you're free to 
use it and bash on it however you like.

Instead, I'd propose to just expose a set of currently-connected uids. You 
can then intersect that set against any subscription/channel logic you may 
have.

Having said all that, I'm not sure what Socket.IO's rationale was when they 
chose to bundle subscription semantics into the core API so I might well be 
missing something...
Does that make sense? What do you think? Is your concern more that 
maintaining your own subscription data will be a nuisance, or that it's 
difficult to do? Am definitely open to ideas I may not have thought of.

>  

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to