Closed arafay696 closed 7 years ago
i am using PHP library and i have complete all the steps, and also double check my APP KEY,ID and Secret: but when i try this:
http://localhost/pusher-realtime-chat/src/
Error: Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":4001,"message":"Could not find app by key API_KEY. Perhaps you're connecting to the wrong cluster."}}}
Your apps were created in ap2, so you need to specify the cluster in the Pusher instance.
ap2
So you need to update this for example, to pass a options field with cluster => 'ap2'. And also in the javascript client as well.
options
cluster => 'ap2'
Perhaps I should create a MR to improve this...
i am using PHP library and i have complete all the steps, and also double check my APP KEY,ID and Secret: but when i try this:
http://localhost/pusher-realtime-chat/src/
Error: Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":4001,"message":"Could not find app by key API_KEY. Perhaps you're connecting to the wrong cluster."}}}