Laravel 使用 vue js 的推送器无法正常工作
Laravel pusher with vue js not working truely
我刚开始使用 laravel pusher 和 vue js。
我使用 this tutorial 与 pusher 聊天,但它并没有真正起作用。用户不会收到其他用户的消息。
enter image description here
如图所示,我收到以下错误:
app.js:37257 WebSocket connection to 'wss://ws-us2.pusher.com/app/1797b1153d5dbf7d494f?protocol=7&client=js&version=4.2.2&flash=false' failed: Error in connection establishment: net::ERR_PROXY_CONNECTION_FAILED
Pusher : Connecting : {"transport":"xhr_streaming","url":"https://sockjs-us2.pusher.com:443/pusher/app/1797b1153d5dbf7d494f?protocol=7&client=js&version=4.2.2"}
app.js:38904 OPTIONS https://sockjs-us2.pusher.com/pusher/app/1797b1153d5dbf7d494f/339/6g9476l7/xhr_streaming?protocol=7&client=js&version=4.2.2&t=1526190472039&n=3 net::ERR_PROXY_CONNECTION_FAILED
我做了教程中解释的所有事情!
我的问题解决了,忘记回复了。这是为了升级我的节点然后我不得不将 Prettier 降级到 1.12.0:
npm install --save-dev prettier@1.12.0
npm run dev
错误已修复。我认为添加这个评论你应该把队列驱动程序放到redis和运行 queue:work以获得预期的结果还不错,因为它没有在那个教程中提到。
我刚开始使用 laravel pusher 和 vue js。 我使用 this tutorial 与 pusher 聊天,但它并没有真正起作用。用户不会收到其他用户的消息。
enter image description here
如图所示,我收到以下错误:
app.js:37257 WebSocket connection to 'wss://ws-us2.pusher.com/app/1797b1153d5dbf7d494f?protocol=7&client=js&version=4.2.2&flash=false' failed: Error in connection establishment: net::ERR_PROXY_CONNECTION_FAILED
Pusher : Connecting : {"transport":"xhr_streaming","url":"https://sockjs-us2.pusher.com:443/pusher/app/1797b1153d5dbf7d494f?protocol=7&client=js&version=4.2.2"} app.js:38904 OPTIONS https://sockjs-us2.pusher.com/pusher/app/1797b1153d5dbf7d494f/339/6g9476l7/xhr_streaming?protocol=7&client=js&version=4.2.2&t=1526190472039&n=3 net::ERR_PROXY_CONNECTION_FAILED
我做了教程中解释的所有事情!
我的问题解决了,忘记回复了。这是为了升级我的节点然后我不得不将 Prettier 降级到 1.12.0:
npm install --save-dev prettier@1.12.0
npm run dev
错误已修复。我认为添加这个评论你应该把队列驱动程序放到redis和运行 queue:work以获得预期的结果还不错,因为它没有在那个教程中提到。