# Pusher protocol glossary: channels, socket IDs, auth and webhooks

> Thirty Pusher Channels terms in a sentence or two each, from app key and socket ID to presence channels, client events, auth signatures and webhook headers.

Source: https://hibira.io/topics/pusher-protocol-glossary
Updated: 2026-11-18

The Pusher Channels protocol has its own vocabulary: socket IDs, presence channels, client events, auth signatures and webhooks. This glossary explains each term in a sentence or two, with the event or header name you see in your code and logs. The [Pusher protocol](https://hibira.io/pusher-protocol) page shows how they fit together, step by step.

## Connections

| Term | What it means |
| --- | --- |
| App key | The public half of an app's credentials. It goes in the WebSocket URL and in browser code, and is safe to ship. |
| App secret | The private half. Your server signs channel authorizations and HTTP API requests with it. It never leaves your server. |
| App ID | Names the app in HTTP API paths such as `/apps/APP_ID/events`. |
| Cluster | Pusher's name for a region, such as `mt1` or `eu`. A compatible service gives you a host instead, for example `ws.hibira.io`. |
| `wsHost` | The pusher-js option that points the client at a host other than Pusher's own. |
| Protocol version | The `protocol=7` in the WebSocket URL. Version 7 is current; servers also accept 5 and 6. |
| `pusher:connection_established` | The first message on a new connection. It carries the socket ID and the activity timeout. |
| Socket ID | The ID of one connection, such as `123.456`. Two tabs have two socket IDs, and a reconnect brings a new one. |
| Activity timeout | Seconds of silence before a side sends `pusher:ping`; the other answers `pusher:pong`. |
| Close codes 4000–4299 | Why the server closed the connection: 4001 unknown app key, 4004 over the connection limit, 4201 no pong in time, and so on. |

## Channels and events

| Term | What it means |
| --- | --- |
| Channel | A named stream that clients subscribe to. The prefix of the name sets its type. |
| Public channel | A channel with no prefix. Anyone with the app key can subscribe. |
| Private channel | A `private-` channel. Your server must authorize each subscription. |
| Presence channel | A `presence-` channel that also knows who is subscribed: the member list, `member_added` and `member_removed`. |
| Encrypted channel | A `private-encrypted-` channel. The server library encrypts each event, so the service relays data it cannot read. |
| Cache channel | A `cache-` channel that keeps the last event and sends it to each new subscriber. |
| Event | A message on a channel: a name, the channel and `data`, a string that usually holds JSON. |
| Client event | An event a client sends straight to the other subscribers. Its name starts with `client-`, and it works only on private and presence channels when turned on. |
| `pusher_internal:subscription_succeeded` | The answer to a subscription. On presence channels it carries the member list. |
| Subscription count | `pusher_internal:subscription_count`: how many connections a channel has, sent when the app turns the feature on. |

## Authorization and your server

| Term | What it means |
| --- | --- |
| Auth endpoint | The route on your server that pusher-js calls before it joins a private or presence channel, such as `/broadcasting/auth` in Laravel. |
| Auth signature | The HMAC-SHA256 of `socket_id:channel_name`, keyed with the app secret and prefixed with the app key. |
| `channel_data` | The JSON with `user_id` and `user_info` that a presence auth response adds, and that the signature covers. |
| User authentication | `pusher:signin`: a connection proves which user it belongs to, so your server can send to that user and close their connections. |
| HTTP API | The signed REST API your server publishes with: `/events`, `/batch_events` and the channel queries. |
| Batch trigger | Up to 10 events in one HTTP request, each with its own channel and optional socket ID. |
| Excluding the sender | Passing a socket ID when you publish, so that connection does not receive the event. Laravel calls it `toOthers()`. |
| Webhook | A signed POST from the service to your server when a channel becomes occupied or vacated, a member joins or leaves, or a client sends an event. |
| `X-Pusher-Signature` | The webhook header with the HMAC-SHA256 of the raw body, keyed with the app secret. Check it before you trust a webhook. |
| Pusher-compatible | A service or server that speaks this protocol, so pusher-js, Laravel Echo and the Pusher server libraries work with it after a host change. |

These definitions follow [Pusher's protocol reference](https://pusher.com/docs/channels/library_auth_reference/pusher-websockets-protocol/) and its [webhook documentation](https://pusher.com/docs/channels/server_api/webhooks/), checked on 2026-11-18.

## Questions

### What is the difference between a private and a presence channel?

Both need your server's signature to join. A presence channel also tells every subscriber who else is there, with a member list and join and leave events. Use private channels for data that belongs to one user or group, and presence channels for who is online, typing or watching.

### Is the socket ID the same as the user ID?

No. A socket ID names one connection. One user with two tabs has two socket IDs, and a reconnect brings a new one. To reach a user on every connection, use user authentication or a channel named after the user.

### Does a Pusher-compatible service use the same terms?

Yes. The channel prefixes, event names, close codes, auth signature and webhook headers are the same, which is why existing client and server libraries work. Hibira adds `presence-large-` channels for presence with up to 100,000 members; the [migration guide](https://hibira.io/migrate) lists what else differs.

### Where do I find the app key, secret and ID?

In your app's settings in the service's dashboard. On Hibira, the app page shows the ID, key and host, and the secret once when you create the app or rotate it.
