A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pusher.com/docs/client_api_guide/client_public_channels below:

Pusher Channels Docs | How to set up public channels

Public channels

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

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

Subscribe
var channel = pusher.subscribe(channelName);
let channel = pusher.subscribe(channelName)
var channel = Echo.channel(channelName);
Parameters
channelNamestring Required

The name of the channel to subscribe to.

Returns

A channel object which events can be bound to. See binding to events.

Unsubscribe
pusher.unsubscribe(channelName);
pusher.unsubscribe(channel.name)
Echo.leaveChannel(channelName);
Parameters
channelNamestring Required

The name of the channel to unsubscribe from.

channelNameString Required

The name of 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:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4