If your pusher-js client never connects while the app key is correct, check the cluster: const pusher = new Pusher(APP_KEY, { cluster: APP_CLUSTER, // e.g. 'eu', 'us2', 'ap1' - from your dashboard }); pusher-js defaults to the mt1 (us-east-1) cluster. The cluster option is mandatory for any app created outside mt1; without it the client talks to the wrong region and the connection never establishes. This is the first thing to check on a fresh Pusher app whose dashboard says the app is in eu or us2: the default code snippet in old tutorials omits cluster entirely. Verify in the browser console with pusher.connection.state and confirm the cluster value in your dashboard matches what the client passes.

Context: Docs (pusher/docs, connection.md): pusher-js defaults to the mt1 (us-east-1) cluster when no cluster option is given, and the cluster parameter is mandatory for apps created in any other cluster. Symptom: the client never reaches connected state (or connects to the wrong app's region) while the key looks correct, because the app was created in eu/us2/ap1 etc. Fix: pass cluster from the dashboard: new Pusher(APP_KEY, { cluster: 'eu' }).