Very nicely presented and informative. One thing I would suggest, instead of explaining how people should use more secure keys and secrets in their ENV for production, why not show them how to do it? It would probably have taken the same time. E.g. fire up php artisan tinker and enter "Illuminate\Support\Str::random(64)"
First of all I want to give a THANK YOU ;) but also I have some questions: 1. my colleague before said me that php websockets (instead of node sockets) event listener works with something like infinitous while loop behind the scene, so it's not optimized. what You can say about that ? 2. is custom built socket server secure (even with https scheme), when we comparing that with pusher server ? 3. where I can find the lesson about Presence channels (as You said at end of this video) 4. what about Socket.IO APIs ? (pls say something about comparison between that two custom servers) 5. why actually this great video lesson viewed so little times ? ;) I hope that You will have some small time to answer, because I think these topics will be interested for many others.. Thanks again!!!
I took a sabbatical last year and traveled most of the entire year of 2018. But I am back for 2019, and we will be doing a lot more videos this year. Thanks for being so quick to watch!
Hello! I think you can do this setup without supervisord in case you dont have ssh access. Im testing this little code right now. I think that should do the job. In your App\Console\Kernel.php add a new schedule command like this $schedule->command('websockets:serve')->when(function () { $connection = @fsockopen('127.0.0.1', '6001'); return !is_resource($connection); }) ->everyMinute() ->runInBackground() ->withoutOverlapping();
It took me hours to get past step 2, I didn't realize they where stacked in the queue without running a worker... sigh. Anyway much gratitude for this tutorial! ps. i'ts fun to see a couple hundered messages pop up at once tho 🤣🤣
dude! you just saved me a couple hundred hours of debugging lol i was so confused why my messages weren't showing up on the statistics page so thank you!
***great video****...please demonstrate how to deploy laravel on shared hosting using cpanel because it work fine on local host but on online sharing host it break and have many issues!
I've a question please... I am stuck from last 1 month. My web socket server automatically disconnect after 3 minutes. Then I've to again send a send to connect it again? Is there any way we can keep running WebSocket server?
while clicking on the "connect" button in the laravel-WebSockets dashboard "Channels current state is unavailable" this error can you help me with this?
Hi, I think you forgotten about making a tutorial for presence channel, which you promised, can you please do that? btw, your tutorials are very good, thank you so much
Hi thanks for this video it helped me a lot i had setup my laarvel websocket in my local ubuntu system.I did same configuration on Host ubuntu server which is running on digitalocen cloud but I am not able to connect.Can you please release video on deploying laravel websocket on host ubuntu server i think this will help to lot of peoples
nice tutorial boss pls i would like for u to talk about hosting Laravel what hosting server to use ? should I use shared server or something else ?? now I have an api running on Laravel and I want to run websocket and queue jobs and I know I would have to run artisans command to start but I can't do this on shared server where do I go to archive this
Thank you so much for this video I am waiting for it but there was a little bit problem with it and it is how can we deploy this server.. to hosting provider ?
Hi, did everything as in tutorial, set up in .env APP_URL=websockets.test , then artisan phph serve , php artisan websockets:serve - but in browser on address websockets.test I get only 'page can't be found' . Is it something missing? Do I do something wrong?
I got this error when try to connect web socket server in localhost app.js:42330 WebSocket connection to 'wss://localhost/app/anyKey?protocol=7&client=js&version=6.0.3&flash=false' failed: Error in connection establishment: net::ERR_CERT_COMMON_NAME_INVALID
I followed the steps EXACTLY through the first 14:58 of the video and when I pushed "Connect" from the dashboard, I get "Channels current state is unavailable" and none of the rest of the screen populates as it does in the video. I checked DevTools and have these errors:
Hi thanks for this tutorial, but could you also do one showing how we can deploy these web sockets on cpanel, locally they work fine but in production they don't.
along with "WebSocket connection to 'wss://websockets.test:6001/app/UAMINCTOWER?protocol=7&client=js&version=4.3.1&flash=false' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED"
Hello may i ask a question ? Will it work on mobile/ android phones when accessing the project on local host and it is the mobile is connected via wifi ?
You’ll need to use something like ngrok if you want to access it from a mobile device. Google “ngrok” and you’ll see what I mean. I’m sure there are other ways. But ngrok is what I have always used.
hi , i need to use real-time data in my android app , i'm new to laravel , so confused little bit , i dont want to use pusher , so when i searched i got many tutorials . 1. laravel websocket 2. Rachet 3. socket.io + redis + node i'm building an android app like facebook , like users can post , comment replay currently i created all apis for this in laravel and using mysql database , but i need realtime feature
Most vps Linux installers will have supervisor installed by default. If not you can install it by searching for “supervisord” (yes, with a d at the end) in your app installer like “apt-get supervisord”. Once installed this is the best tutorial on how to configure supervisor to work with this package: docs.beyondco.de/laravel-websockets/1.0/basic-usage/starting.html#keeping-the-socket-server-running-with-supervisord
has your code gotten any better? last time i checked you were writing a bunch of logic inside controllers. Logic is what your models are for. controllers should be a few lines as possible.
i am trying to integrate this with my existing laravel application, everything is done and installed properly but when i hit an event through tinker, but not getting changes on 'localhost:8000/laravel-websockets', what could be the possibility to handle this.....Please suggest me, Thanks in advance
Welcome back to the greatest teacher for Laravel. I have learned a lot from you with the "Blog Application" for beginner and after I have finished the series I started doing my own projects and even got hired because of it. Thank you so much and would love to see more videos. I believe that this would be the best channel on RUclips for Laravel.
You have explained Laravel Websockets package in a very easy way. I loved that. I must say, you are a very good teacher for Laravel. I have also used this package in my real-time chat app tutorial series.
pusher.min.js:8 WebSocket connection to 'wss://websockets.test:6001/app/UAMINCTOWER?protocol=7&client=js&version=4.3.1&flash=false' failed: WebSocket is closed before the connection is established.
Dude, really nice tutorials! Most of the people that makes tutorials don't explain anything they just describe with their voices exactly what they are doing... it so stupid haha... Buy you are explaining and creating context and giveing concepts... Very good, nice job.
Hey! Amazing video as usual. Would you be able to cover laravel deployment to maybe AWS or GC especially when using queues, storage, websockets, etc. Thanks
Bloody hell; all I wanted was a way to refresh a status page when a database table was modified, on a very small app I'm building that will not have internet access. Might stick with my existing " solution to refresh the page every 10 seconds. Very primitive, but for one or two users, it will work (with a delay). I'm very new to Laravel, but simple solutions to simple tasks doesn't seem to be a feature. The assumption seems to be everyone wants to build a blog!!
i have an issue please anyhelp : in my chrome it shows me in the console this error : WebSocket connection to 'wss://localhost/app/2222?protocol=7&client=js&version=6.0.3&flash=false' failed: Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID . help me guys I wasted over 4 days trying to see where the problem is
I have managed to do this with and without https. When I apply the https, on my server, the events are taking too long to be sent, about 15 seconds, and on my localhost in http, its instant. Does anyone knows why? The server is supposed to be a lot stronger than my machine
Because of you i have a job now thanks a lot man please stay.
Wow. That is so cool. It’s absolutely amazing to hear how many of you have gotten hired from my courses.
Very nicely presented and informative.
One thing I would suggest, instead of explaining how people should use more secure keys and secrets in their ENV for production, why not show them how to do it? It would probably have taken the same time. E.g. fire up php artisan tinker and enter "Illuminate\Support\Str::random(64)"
First of all I want to give a THANK YOU ;)
but also I have some questions:
1. my colleague before said me that php websockets (instead of node sockets) event listener works with something like infinitous while loop behind the scene, so it's not optimized. what You can say about that ?
2. is custom built socket server secure (even with https scheme), when we comparing that with pusher server ?
3. where I can find the lesson about Presence channels (as You said at end of this video)
4. what about Socket.IO APIs ? (pls say something about comparison between that two custom servers)
5. why actually this great video lesson viewed so little times ? ;)
I hope that You will have some small time to answer, because I think these topics will be interested for many others.. Thanks again!!!
Never noticed hand writing font used in programming code before. Its kind of nice just having those subtel parts changed like that
OMG, I'm waiting for your videos from long time, what happend???
I took a sabbatical last year and traveled most of the entire year of 2018. But I am back for 2019, and we will be doing a lot more videos this year. Thanks for being so quick to watch!
He forgot the password channel again 🤣
Welcome back.. we love your videos..learnt alot from you
Hello! I think you can do this setup without supervisord in case you dont have ssh access. Im testing this little code right now. I think that should do the job. In your App\Console\Kernel.php add a new schedule command like this
$schedule->command('websockets:serve')->when(function () {
$connection = @fsockopen('127.0.0.1', '6001');
return !is_resource($connection);
})
->everyMinute()
->runInBackground()
->withoutOverlapping();
Looks awesome. Thanks for sharing. I haven’t personally tried this but looking at the code it seems like it would work.
Thank you so much for your clear explanation!
After long time.....waiting for your lessons....
is there any cost/pricing for using pusher driver in our self-host application?
You are the best. Looking for more videos on laravel with Vue. thanks
Great little run through
It took me hours to get past step 2, I didn't realize they where stacked in the queue without running a worker... sigh.
Anyway much gratitude for this tutorial!
ps. i'ts fun to see a couple hundered messages pop up at once tho 🤣🤣
dude! you just saved me a couple hundred hours of debugging lol i was so confused why my messages weren't showing up on the statistics page so thank you!
If you watched this video and helped you a lot, please subscribe :D a simple way to thank him for making our lives easier
***great video****...please demonstrate how to deploy laravel on shared hosting using cpanel because it work fine on local host but on online sharing host it break and have many issues!
Hey did you get any solution for hosting websockets on cPanel on production server. I’m still struggling
tks bro,your videos really help me.tks from argentina
Thanks so much, I finally make it work!!
Finally, welcome back teacher :D
hi...why cant i access the dashboard return not found on my existing project.. but works fine on fresh project...i have change the path but same...
I've a question please... I am stuck from last 1 month.
My web socket server automatically disconnect after 3 minutes. Then I've to again send a send to connect it again?
Is there any way we can keep running WebSocket server?
while clicking on the "connect" button in the laravel-WebSockets dashboard "Channels current state is unavailable" this error can you help me with this?
Subscribed, Thumb's Up, Bell Icon done :)
Keep it up !!! We like Your videos
Hi
Is the laravel-websockets package the same as the free version of the pusher js (unlimited connections and messages) ?
hello pls i have a question let say i have an api build with laravel can i add websocket to my laravel api app if yes what do i need to do pls
Hi, I think you forgotten about making a tutorial for presence channel, which you promised, can you please do that? btw, your tutorials are very good, thank you so much
Hi buddy, did you found any video about that ?? I mean presence channel
Hi thanks for this video it helped me a lot i had setup my laarvel websocket in my local ubuntu system.I did same configuration on Host ubuntu server which is running on digitalocen cloud but I am not able to connect.Can you please release video on deploying laravel websocket on host ubuntu server i think this will help to lot of peoples
hi, how can I make it work with aws beanstalk please?
nice tutorial boss pls i would like for u to talk about hosting Laravel
what hosting server to use ?
should I use shared server or something else ??
now I have an api running on Laravel and I want to run websocket and queue jobs and I know I would have to run artisans command to start but I can't do this on shared server where do I go to archive this
Thank you so much for this video I am waiting for it but there was a little bit problem with it and it is how can we deploy this server.. to hosting provider ?
How can we deploye in server iam stuck in this can u help me this in hosting it is not working
Hi, did everything as in tutorial, set up in .env APP_URL=websockets.test , then artisan phph serve , php artisan websockets:serve - but in browser on address websockets.test I get only 'page can't be found' . Is it something missing? Do I do something wrong?
You need to run "php artisan serve"
Great tutorial. I have a question.... It's possible to use a .Net desktop client with a websockets Laravel server? Can you put me in right direction?
Thankful for your effort
Great video! thanks!
I got this error when try to connect web socket server in localhost
app.js:42330 WebSocket connection to 'wss://localhost/app/anyKey?protocol=7&client=js&version=6.0.3&flash=false' failed: Error in connection establishment: net::ERR_CERT_COMMON_NAME_INVALID
great tutorial..
may i know what theme are u using in vs code..
im realy excited..😅😅
About time!
tu nous avais tellement manqué
please guide me live server @livewirescript tag not working vendor path not found because of vendor path in public folder
What's that vscode theme?
I followed the steps EXACTLY through the first 14:58 of the video and when I pushed "Connect" from the dashboard, I get "Channels current state is unavailable" and none of the rest of the screen populates as it does in the video. I checked DevTools and have these errors:
did you get it to work? im having the same issue right now
@@paoloreyes1668 I never got a reply nor got it to work. I returned to Pusher.
Was able to make it work without ssl
Bro i assume your on AWS if so just run sudo php artisan websockets:serve
I do not code CI or Laravel, any idea on how to do this without using PHP framework?
🤣
Can we have a tutorial that uses redis as the driver for broadcast. Also i had to face difficulties inplementing your approach on laravel 5.8 - 6.x
hello, thanks for this nice tutorial, ca we use this with laravel echo server? thanks
It's not working if my echo and laravel are on different domain so laravel works as api and I have node project with echo. Can you please help
great tutorial, can i use this package to connect laravel with local websocket server (our company socket server), and use broadcast also
)
Note for anyone face problem cant connect to websocket. Use older pusher-js version. I used 4.4.0 instead of latest 7.0.*
What about sending messages from the client to the server for a chat app
can I run the WebSocket server on Cpanel?
Can you please share the font name that you are using in editor Thanks
Hello Alex, will you continue advanced blog tutorials or it's over?
Great, thank you man
Dear wizard, what is this supervisor you speak of?
Can't believe he don’t make videos anymore 😢
DevMarketer, hey bro, what's the name of the font you're using in atom? it looks like cool
thank u Sir🥰🥰🥰
I'm trying to bind port 80 to 6001 on nginx, but didnt get it, so that I do not need to pass :6001 on url. Does any one know how to do it ?
Hi thanks for this tutorial, but could you also do one showing how we can deploy these web sockets on cpanel, locally they work fine but in production they don't.
x2
Can you make auction site using this??
along with "WebSocket connection to 'wss://websockets.test:6001/app/UAMINCTOWER?protocol=7&client=js&version=4.3.1&flash=false' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED"
Can I use native javascript as a client with laravel web sockets instead of Laravel-Echo?
You'd need to use Socket IO with express o Node HTTP
how can i serve websockets without websoket:serve command? how can run it with apache?
php artisan serve
Hello may i ask a question ? Will it work on mobile/ android phones when accessing the project on local host and it is the mobile is connected via wifi ?
You’ll need to use something like ngrok if you want to access it from a mobile device. Google “ngrok” and you’ll see what I mean. I’m sure there are other ways. But ngrok is what I have always used.
hi , i need to use real-time data in my android app , i'm new to laravel , so confused little bit , i dont want to use pusher , so when i searched i got many tutorials .
1. laravel websocket
2. Rachet
3. socket.io + redis + node
i'm building an android app like facebook , like users can post , comment replay
currently i created all apis for this in laravel and using mysql database , but i need realtime feature
did you find any solution? I need something very similar
Why U use jacket in room?
How can I use the "leaving" function when I use a public channel? For example, I want to detect when visitors enter or leave a page
There are public channels, private channels and presence channels. It must be presence channel f you want to use .joining() and .leaving().
how can i integrate websocket to my api made in laravel
hi, it is possible to connect to the websockets server with external client (like a java app) ?
Yes create a socket client listening on the port that the socket server is listening on
Cannot connect in dashboard
what is the theme that you use 😃
Could you point me in the direction of a proper setup of 'supervisor'?
Most vps Linux installers will have supervisor installed by default. If not you can install it by searching for “supervisord” (yes, with a d at the end) in your app installer like “apt-get supervisord”. Once installed this is the best tutorial on how to configure supervisor to work with this package: docs.beyondco.de/laravel-websockets/1.0/basic-usage/starting.html#keeping-the-socket-server-running-with-supervisord
It’s easy if you use forge
Hi... when I click "connect" I get "Channels current state is unavailable". Anyone else with the same problem??? How to solve this???
has your code gotten any better? last time i checked you were writing a bunch of logic inside controllers. Logic is what your models are for. controllers should be a few lines as possible.
how can i create video streaming system with live chat ?
Finally thank yuuuuuuuu
Hi sir can you make tutorial oh how this websocket works on react native android app. Thank you
i am trying to integrate this with my existing laravel application, everything is done and installed properly but when i hit an event through tinker, but not getting changes on 'localhost:8000/laravel-websockets', what could be the possibility to handle this.....Please suggest me, Thanks in advance
can you find any solution for this issue ?
@prashant gupta
Not expected :X
I like :D 2
in console chrome, i get undefined
Welcome back to the greatest teacher for Laravel. I have learned a lot from you with the "Blog Application" for beginner and after I have finished the series I started doing my own projects and even got hired because of it. Thank you so much and would love to see more videos. I believe that this would be the best channel on RUclips for Laravel.
This is awesome to hear. I love hearing about people that got hired from my videos. Thanks for sharing and subscribing!
You have explained Laravel Websockets package in a very easy way. I loved that. I must say, you are a very good teacher for Laravel.
I have also used this package in my real-time chat app tutorial series.
QiroLab nice
Am I the only one who gets 404 not found when trying to access the dashboard?
Are you still active, you have not uploaded for years now, I really miss you 🥺☺️
pusher.min.js:8 WebSocket connection to 'wss://websockets.test:6001/app/UAMINCTOWER?protocol=7&client=js&version=4.3.1&flash=false' failed: WebSocket is closed before the connection is established.
i am getting error blocked by CORS policy in production?? can someone help me?
Dude, really nice tutorials! Most of the people that makes tutorials don't explain anything they just describe with their voices exactly what they are doing... it so stupid haha... Buy you are explaining and creating context and giveing concepts... Very good, nice job.
Thanks for coming back. It means alot
I did exactly the same but didn't work then I found out to also running queue:listen in new tab.. that was terrifying.. LOL
Hey! Amazing video as usual. Would you be able to cover laravel deployment to maybe AWS or GC especially when using queues, storage, websockets, etc. Thanks
One of the best channels that i follows , very easy to learn .. Thank You .
I hope if you would make a tutorial for us on Unit Testing with laravel .
Cors are killing me!!
Bloody hell; all I wanted was a way to refresh a status page when a database table was modified, on a very small app I'm building that will not have internet access. Might stick with my existing " solution to refresh the page every 10 seconds. Very primitive, but for one or two users, it will work (with a delay). I'm very new to Laravel, but simple solutions to simple tasks doesn't seem to be a feature. The assumption seems to be everyone wants to build a blog!!
Bring this guy an Oscar! Thank you very much buddy.
Ohh Alex, You Back....!!! Thank u.... I love to see your videos....
i have an issue please anyhelp : in my chrome it shows me in the console this error : WebSocket connection to 'wss://localhost/app/2222?protocol=7&client=js&version=6.0.3&flash=false' failed: Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID . help me guys I wasted over 4 days trying to see where the problem is
I have managed to do this with and without https. When I apply the https, on my server, the events are taking too long to be sent, about 15 seconds, and on my localhost in http, its instant. Does anyone knows why? The server is supposed to be a lot stronger than my machine