Compatibile con Pusher, senza riscrivere
Tieni pusher-js, Laravel Echo e tutte le librerie server di Pusher. Sostituisci il cluster con un host: nomi dei canali, eventi ed endpoint di autenticazione restano esattamente come sono.
const pusher = new Pusher("YOUR_KEY", {
- cluster: "eu",
+ cluster: "",
+ wsHost: "YOUR_HOST",
+ wssPort: 443,
+ forceTLS: true,
+ enabledTransports: ["ws", "wss"],
channelAuthorization: { endpoint: "/api/pusher/auth" },
});