Docs/Channels
Public Channels
Subscribe to public channels without authentication.
Public Channels
Public channels are the simplest way to broadcast real-time updates. No authentication is required — anyone with your application key can subscribe and receive events.
Use Cases
- Live notifications
- Real-time dashboards
- Stock prices, sports scores
- System status updates
Subscribing
js
const channel = pusher.subscribe('my-channel')
channel.bind('update', (data) => {
console.log('Received:', data)
})Channel Names
Channel names must:
- Be between 1 and 164 characters, including any prefix
- Only contain:
a-z,A-Z,0-9,_,=,@,,,.,;, and-
The # character and reserved encrypted/cache channel prefixes are not
available for application-created public channels.
Unsubscribing
js
pusher.unsubscribe('my-channel')