Pusher provides hosted WebSocket infrastructure for building real-time features in web and mobile applications. It supports pub/sub channels, presence channels for user awareness, private channels for authenticated messaging, and client events for peer-to-peer communication. The platform handles connection management, fallbacks, and scaling automatically.
Push real-time notifications to specific users or groups through private channels, with delivery guarantees and automatic reconnection handling.
Build real-time collaboration with presence channels that track who is viewing or editing a resource, with typing indicators and live cursor positions.
Stream metrics, order updates, or sensor data to dashboards in real time using public channels with server-triggered events.
import Pusher from "pusher";const pusher = new Pusher({appId: process.env.PUSHER_APP_ID!,key: process.env.NEXT_PUBLIC_PUSHER_KEY!,secret: process.env.PUSHER_SECRET!,cluster: process.env.NEXT_PUBLIC_PUSHER_CLUSTER!,useTLS: true,});export async function broadcastOrderUpdate(orderId: string, status: string) {await pusher.trigger(`private-order-${orderId}`, "status-changed", {orderId,status,updatedAt: new Date().toISOString(),});}
Seamless integration, great documentation. Set up in under 10 minutes.
2 days ago
Works well for our use case. Would love to see more webhook event types.
1 week ago
Excellent compliance coverage. HIPAA audit trail works perfectly.
2 weeks ago
| Key | Description | Example |
|---|---|---|
| PUSHER_APP_ID | Pusher application ID | 123456 |
| NEXT_PUBLIC_PUSHER_KEY | Pusher app key (safe for client-side) | xxxxxxxxxxxxxxxxxxxxxxxx |
| PUSHER_SECRET | Pusher app secret for server-side use | xxxxxxxxxxxxxxxxxxxxxxxx |
| NEXT_PUBLIC_PUSHER_CLUSTER | Pusher cluster region | us2 |
Pusher provides hosted WebSocket infrastructure for real-time messaging, eliminating the need to manage your own WebSocket servers. It offers public, private, and presence channels for different access patterns, with automatic connection management and fallbacks. Best for adding real-time notifications, live updates, and collaborative features to web and mobile applications.