Pusher Channels
v1.0.3Trigger events, query channels, and manage realtime messaging on Pusher Channels.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
trigger_event
Send an event to one or more Pusher channels. Use this to push realtime messages to connected clients.
| Parameter | Type | Description |
|---|---|---|
channel * | Channel name or array of channel names (max 100) | |
data * | Event payload — string or JSON object (max 10KB) | |
event * | string | Event name to trigger (e.g. 'new-message', 'update') |
socketId | string | Optional socket ID to exclude from receiving the event (prevents echo) |
trigger_batch_events
Send up to 10 events in a single API call. More efficient than triggering events individually when you need to notify multiple channels.
| Parameter | Type | Description |
|---|---|---|
events * | array | Array of events to send (max 10) |
list_channels
List all active channels in your Pusher app. Optionally filter by prefix (e.g. 'presence-' or 'private-') and request subscription or user counts.
| Parameter | Type | Description |
|---|---|---|
info | array | Additional attributes to include for each channel |
prefix | string | Filter channels by prefix (e.g. 'presence-', 'private-chat-') |
get_channel_info
Get detailed information about a specific Pusher channel, including whether it is occupied and optional subscription/user counts.
| Parameter | Type | Description |
|---|---|---|
channel * | string | The channel name to query |
info | array | Additional attributes to request |
get_presence_users
List all users currently connected to a presence channel. Only works with channels that start with 'presence-'.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Presence channel name (must start with 'presence-') |
authorize_channel
Generate an authorization token for a private or presence channel. Useful when building auth endpoints for Pusher client connections.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Private or presence channel name (must start with 'private-' or 'presence-') |
socketId * | string | The socket ID from the client connection |
presenceData | object | Required for presence channels — identifies the connecting user |
terminate_user_connections
Disconnect all connections for a specific user. Useful for moderation or security — forces a user offline across all channels.
| Parameter | Type | Description |
|---|---|---|
userId * | string | The user ID to disconnect from all channels |