April 16th in Coding, JS

Realtime client push – Pusher




Pusher is a realtime service that complements your existing server architecture.

You continue to send HTML to your clients and receive requests back from them.

Tell your clients which channels they should connect to

In order to start receiving events, you need to tell clients what ‘channels’ to listen to via a websocket connection.

Channels are generally based on the entities in your domain.

Trigger events to Pusher via REST

When there is an activity that you want several users to know about, your server makes a simple REST call to the Pusher API passing a JSON payload of data. This message is modelled on Javascript event triggering.

The event is relayed to the relevant browsers on the specified channel. Javascript code bound to the specified event informs the connected users of the activity.

Leave A Comment.





Subscribe to Our Feed

Follow Us on Twitter     

Find Us on Facebook