ammezie / laravel-chat

Build a chat app in Laravel
MIT License
123 stars 126 forks source link

This is not working with laravel V5.5 #11

Open ankitjain28may opened 6 years ago

ammezie commented 6 years ago

You will need to provide the errors you having.

ankitjain28may commented 6 years ago

Showing this error even i updated the credentials--

Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":4001,"message":"Did you forget to specify the cluster when creating the Pusher instance?  App key 760cfdcc10984ce27838 does not exist in this cluster."}}}
app.js:33139:19
The connection to wss://ws-eu.pusher.com/app/760cfdcc10984ce27838?protocol=7&client=js&version=4.0.0&flash=false was interrupted while the page was loading.
ammezie commented 6 years ago

Did you you specify your Pusher app credentials inside .env? Please read the project readme.

ankitjain28may commented 6 years ago

yes

D-sense commented 6 years ago

@ankitjain28may, it is probably because you entered the wrong Pusher Key. Check your config file and .env file.

gthuo commented 6 years ago

@ammezie , please correct the following errors in the code:

ammezie commented 6 years ago

@gthuo you can submit a PR to this effect.

CJSX1 commented 6 years ago

Showing this error i dont kow what this exactly means ....please can u help to solve--

Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":4001,"message":"Did you forget to specify the cluster when creating the Pusher instance? App key 51611bdaceeaaa93b355 does not exist in this cluster."}}} app.js:33139:19 The connection to wss://ws-eu.pusher.com/app/51611bdaceeaaa93b355?protocol=7&client=js&version=4.0.0&flash=false was interrupted while the page was loading.

ammezie commented 6 years ago

Make sure you specify the right app key in the right cluster

typ6a commented 6 years ago

In broadcasting.php encrypted should be false for localhost, only user true when you are on https:/. thanks https://laracasts.com/discuss/channels/laravel/laravel-54-event-broadcasting-not-work-with-echo-vuejs I have had the same

aqib026 commented 6 years ago

\public\js\app.js

window.Echo = new WEBPACK_IMPORTED_MODULE_0_laravelechodefault.a({ broadcaster: 'pusher', key: Laravel.pusherKey, cluster: 'eu', encrypted: true });

cluster is hardcoded here , change restart the php artisan serve and it will work

aqib026 commented 6 years ago

https://github.com/ccmelas/ChatBox

conversations implemented as well , check this repo

virenderscideas commented 4 years ago
  var pusher = new Pusher('API_KEY_HERE', {
    cluster: 'ap2',
    encrypted: false,
  });

Just put your app key 'API_KEY_HERE' here.