Laravel 5 Pusher Server Could not Find App By Key

血红的双手。 提交于 2019-12-13 05:59:40

问题


I am having a problem that when I add task it will not triggered the event. how to I solve this ? And besides how to I solve the websocket error? I am using Pusher in order to create a realtime event.. caption of the error message of the browser


回答1:


The image shows you are using a Pusher Application Key with the value YOUR_APP_KEY. This needs to be changed to be the application key you get for your app when you sign in via https://dashboard.pusher.com

If you are using Event Broadcasting in Laravel the configuration for your server will be in config/broadcasting.php as per http://laravel.com/docs/5.1/events#broadcast-configuration

If you are using the Pusher Laravel Bridge then configuration will be in config/pusher.php.

In both cases you will need to pass the Pusher Application Key configuration through to your blade in order to use the value. Or - for testing purposes - you could hard code the key.

If you get a 4005 error message from Pusher then your environment variable is not being passed properly as this means the application cannot be found. See https://stackoverflow.com/a/13802175/39904



来源:https://stackoverflow.com/questions/33411351/laravel-5-pusher-server-could-not-find-app-by-key

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!