Pusher REST API

sgcWebSockets Pusher client has been improved on 4.5.3 version, the HTTP API has been implemented allowing to trigger events, get users of a channel and get a list of channels.

Pusher is a hosted WebSockets solution for building powerful realtime interactive apps. The sgcWebSockets client allows to use the following pusher channels:

  1. Public Channels: can be subscribed to by anyone who knows their name.
  2. Private Channels: they introduce a mechanism which lets your server control access to the data you are broadcasting.
  3. Presence Channels: are an extension of private channels. They let you 'register' user information on subscription, and let other members of the channel know who's online

Pusher HTTP API

The following REST API functions have been implemented.

  1. TriggerEvent: triggers a new event on the specified channel.
  2. GetChannels: provide a list of all channels active.
  3. GetChannel: provide information of a channel.
  4. GetUsers: provide a list of all users connected to a channel.

Find below a video which shows how a client subscribes to a Public Channel and another client calls the method TriggerEvent to trigger a new event on this public channel.
×
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

RTCMultiConnection Delphi Server API
sgcWebSockets 4.5.2

Related Posts