Laravel WebSockets软件包是由Marcel Pociot和Freek Van der Herten开发的。它是用PHP为您的Laravel应用程序实现的WebSockets服务器。该Laravel WebSockets替代了Pusher和JavaScript库Laravel Echo服务器。
在本视频中,您将学习如何在项目中的Laravel广播示例中安装,配置和使用此WebSocket软件包。在第二部分中,我们将一起使用Laravel WebSockets,VueJs和Laravel-echo构建一个实时聊天系统。
Laravel WebSockets是在Ratchet(用于WebSocket的PHP库)的顶部构建的。
???????????????????????????????????????????????????:
https://github.com/hkp22/php-websocket-example
?????????????:
https://docs.beyondco.de/laravel-websockets/
#?:????-??????????,???.????-????
#?-?????????????????????????????????
???????????????????????????????????:
https://github.com/qirolab/Laravel-WebSockets-Chat-Example
????-??????????(???????,?????,???????-????)????????:
DigitalOcean推荐
https://m.do.co/c/e740238537d0
另外,请关注我们:
????????:https://fb.com/qirolab
???????:https://twitter.com/qirolab
can share the db?
Sir done subscribed to your channel, I am getting the events using the dashboard of websocket. But I can't get/listen it in my front-end. Is there some configuration that cause of these? Tried it to convert it to Public Channel it works, but in Presence Channel like yours I can't listen it to my front-end, Please help me
Sir done what you said. I am getting the events using the dashboard of websocket. But I can't get/listen it in my front-end. Is there some configuration that cause of these? Tried it to convert it to Public Channel it works, but in Presence Channel like yours I can't listen it to my front-end, Please help me.
Hello i pushed laravel websocket to live production
and got this error
please do you have anyidea sir
details :
——–
failed: Error during WebSocket handshake: Unexpected response code: 502
FOr those running on live domain, make sure to run, php artisan websockets:serve on your serve else it will throw Error in connection establishment: net::ERR_CONNECTION_REFUSED…………………… run php artisan websockets:serve
thank u brother <3
Man you're so good! Big thanks for this tutorial. Short and straightforward. Very cool!
I have an error,
class "WebSocketDemoEvent " not found
how to integrate in our project.where we change path in web socket.php
Getting this error in the console:
Failed to load resource: the server responded with a status of 404 (Not Found)
Hello, I can Laravel WebSockets on Namecheap or IONOS.
Thanks
thank you
First you should uncomment this line. otherwise it will give broadcast/auth error. config app then un comment this line . AppProvidersBroadcastServiceProvider::class,
I want to try it , i try other tutorial last time , it not finished yet in the tutorial
i face this error appKey is required but was empty for app id “.kindly help me
Class 'WebsocketDemoEvent' not found error
Sir, what extension you are used for Laravel autocomplete ?
I came up with the issue "POST http://localhost:8000/laravel-websockets/auth 404 (Not Found)" when connecting to port 6001
7:16 the yellow line under options, what is the name of the extension?
9:25 not show any chanel and problems in console
I have a question, you will not have a tutorial on how to configure but with Valet secure
HTTPS
I can't run php artisan migrate.
Its working successfully on local machine But not working server how we can fix .
Excellent video friend.
A question in the minute 13:30 does not return anything console.log (e); in the browser console why ??
I have a problem, The dashboard only shows a blank page.