Pete Forde
unread,Jul 7, 2012, 5:20:33 PM7/7/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Bridge
I'm just starting to play with Bridge, and I'm trying to move away
from the simple chat server/client example to get a handle on the
concepts.
I've set two goals for my experiment:
1. Display a count of how many visitors are connected in realtime.
2. Update a text value on all connected clients when it changes on the
server.
So far, getting the clients to join a channel and reflect a text value
was straight forward. However, if there's a way to query the number of
active clients, or even set up a callback to fire when someone joins
or leaves a channel, that would seem to open up a lot of
opportunities.
I can have clients increment a counter when they join a channel, but
there's obviously no guarantee that they will notify the server when
they leave.
If I'm thinking about this wrong, I'm happy to get schooled in the
correct pattern of thought on this matter.
Pete