Public channels

Public channels should be used for publicly accessible data as they do not require any form authorisation in order to be subscribed to.

You can subscribe and unsubscribe from channels at any time. There’s no need to wait for the Pusher to finish connecting first.

Subscribe

var channel = pusher.subscribe(channelName);
PTPusherChannel *channel = [_client subscribeToChannelNamed:channelName];
  • channelName (String)
    • The name of the channel to subscribe to.
  • Returns

Unsubscribe

pusher.unsubscribe(channelName);
  • channelName (String)
    • The name of the channel to unsubscribe from.
[_client unsubscribeFromChannel:channel];
  • channel (PTPusherChannel)
    • The channel to unsubscribe from

Events

See binding to events for general information about how to bind to events on a channel object.

You can bind to the following pusher: events on a public channel:

Have you tried using the search to find what you’re after? If you still have a question then get in touch with us and let us help you out.