title: Observer Daemon on Pusher Channel
body: <p>Currently I have a server-side user list that is pulled down by a User A's browser and then tracks locally the state of the system via pusher as users log on or off.  </p>
  
  <p>As User A's status changes, it sends ajax updates to the server to notify its status.  </p>
  
  <p>I am having de-sync issues with the status of users that are pulled down from the database vs the local tracking of the state in the browser while it is keeping track of users on the channel.  </p>
  
  <p>I would like to create a server-side observer that is constantly monitoring the pusher channels and acts as redundant method to sync the clients browser to the database.</p>
  
  <p>Can anyone point me in the right direction of a good solution to use for the following necessary functions:</p>
  
  <p>-Needs to integrate with pusher and be able to listen to/respond to events, not just send json messages over the channel</p>
  
  <p>-Needs to receive all events that are published on a channel</p>
  
  <p>I am unsure what libraries or solutions exist that can listen to Pusher channel events on the server.</p>
  
  <p>Any suggestions would be much appreciated. </p>