Drop-in Pusher compatibility
Keep pusher-js, Laravel Echo and every Pusher server library. Swap the cluster for a host, and your channel names, events and auth endpoint stay exactly as they are.
const pusher = new Pusher("YOUR_KEY", {
- cluster: "eu",
+ cluster: "",
+ wsHost: "YOUR_HOST",
+ wssPort: 443,
+ forceTLS: true,
+ enabledTransports: ["ws", "wss"],
channelAuthorization: { endpoint: "/api/pusher/auth" },
});