pusher
pusher copied to clipboard
How do I specify 'eu' cluster?
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
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?