pusher icon indicating copy to clipboard operation
pusher copied to clipboard

How do I specify 'eu' cluster?

Open factormaarten opened this issue 7 years ago • 1 comments
trafficstars

Hi,

I'm constantly getting this error:

ApiClients\Client\Pusher\PusherErrorException: Did you forget to specify the cluster when creating the Pusher instance? App key 8201*****02830 does not exist in this cluster.

I'm on the eu cluster

factormaarten avatar May 23 '18 23:05 factormaarten

Hey @mpjraaij,

You can do that by creating the client like this:

AsyncClient::create($loop, 'appID', null, 'cluster-here');

Or are you using the sync client? Just noticed that one doesn't support clusters yet. Will add it tonight unless you want to PR it?

WyriHaximus avatar May 24 '18 08:05 WyriHaximus