Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I bind to an event instead of triggering? #12

Closed
peterwongpp opened this issue Sep 8, 2011 · 1 comment
Closed

Can I bind to an event instead of triggering? #12

peterwongpp opened this issue Sep 8, 2011 · 1 comment

Comments

@peterwongpp
Copy link

I would like to keep a list of online users on the server side for some computations. (I use ruby on rails)

I have seen the example (http://blog.pusher.com/2010/9/22/showing-who-is-online-with-pusher-presence-in-php) which could build the online users list in the client side.

So I would like to know if there is a way to bind an event in the server side?

@leggetter
Copy link

Not presently. We are looking at building webhooks which will mean your server is notified when a channel has been subscribed to (subscribers > 1) and then when there are no subscribers (subscribers == 0).

More details about WebHooks can be found in this FAQ

If you are looking to receive any event then there are two solutions:

  1. Use the Ruby Client Library although this may require some additional modifications to be fully features.
  2. Or, if you would consider using node.js, you could try out the Pusher Pipe. This could of course be ported to an EventMachine library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants