Laravel-WebSockets-Chat-Example icon indicating copy to clipboard operation
Laravel-WebSockets-Chat-Example copied to clipboard

problem in websockets key

Open hamidrezaghanbari opened this issue 4 years ago • 5 comments

why when i serve the websockets its give me this error

Exception BeyondCode\LaravelWebSockets\WebSockets\Exceptions\UnknownAppKey thrown: Could not find app key anyKey. Unknown app id: exception BeyondCode\LaravelWebSockets\WebSockets\Exceptions\UnknownAppKey thrown: Could not find app key anyKey..

hamidrezaghanbari avatar Sep 06 '19 13:09 hamidrezaghanbari

Hi,

  • Check to make sure your public/js/app.js find anyKey world , and replace anyKey to PUSHER_APP_KEY

hemanshudeveloper avatar Sep 24 '19 13:09 hemanshudeveloper

You need to check your .env and change:

BROADCAST_DRIVER=log

to

BROADCAST_DRIVER=pusher

modavidc avatar Jan 14 '20 20:01 modavidc

what should i do with this issue? Please help Illuminate \ Broadcasting \ BroadcastException auth_key should be a valid app key.

sanchita-paul avatar Sep 07 '20 08:09 sanchita-paul

Hi every one. I had this problem. I suggest you to try this: https://github.com/qirolab/Laravel-WebSockets-Chat-Example/issues/5#issuecomment-718097138 it may help you!

mohammadreza33 avatar Oct 28 '20 17:10 mohammadreza33

Thank you modavidc now it works for me

You need to check your .env and change:

BROADCAST_DRIVER=log

to

BROADCAST_DRIVER=pusher

Thank you modavidc now it works for me

samsonnegash avatar Nov 04 '20 14:11 samsonnegash