Este vídeo me salvou ao resolver um problema no Echo, pois, o navegador não estava capturando os eventos. Após você mostrar a forma correta, eu consegui encontrar a solução. Mesmo na documentação oficial, eu não conseguia acertar. Obrigado! ❤❤
Can this be used as a realtime detection of latest updated_at changes in the database table? As of now we are using an ajax event looped every 1 second to check if there are updates from the database to trigger an table.ajax.reload?
yes this is perfect for checking realtime detection you just have to create an event listener for that. and if you are in shared hosting where you don't have access to websocket you can use SSE for that purpose you can find more about it here ruclips.net/video/Dcnud0U5-6E/видео.html or ruclips.net/video/A7I8r3Fhrww/видео.html
In my case, i could pushed just the message that i send in real time without Api or something like that, but i couldn't pushed in real time message received. That's the problem I'm trying to resolve. So i tried to use setInterval but that method make so hot my device.can you help me?
I'm looking for a way to show on my page, messages received without to use websocker or API. I could show message that I send but for message received ,I need every time to refresh the page before to see. That is the mater. @@eraufi
right now and since i started using laravel reverb for web socket i don't recommend using this package. one of the reason is it not maintain any more and another reason is that install and using reverb is much simpler and easier to use
Using Laravel Beyondcode Websockets on shared hosting can be challenging. The main limitation is that shared hosting servers are based on OnDemand-Service, meaning that there is no continuous connection between clients and the server. This is a requirement for real-time technologies like websockets, which need to maintain a persistent connection to send and receive data in real-time
Is this way of using laravel websockets "free"? Because in the video you are using pusherjs and pusher has a free plan but it also has a pricing and such, right? Maybe Im wrong but I'd love to have websockets in my app and this seems to be a really good and easy way to implement them
Este vídeo me salvou ao resolver um problema no Echo, pois, o navegador não estava capturando os eventos. Após você mostrar a forma correta, eu consegui encontrar a solução. Mesmo na documentação oficial, eu não conseguia acertar. Obrigado! ❤❤
Os indianos são os melhores kkkkk
This video works really well for me, thank you so much.
Glad it helped!
This video has been really helpful. Thank you.
thanks to you
Thank you so much for this video, it really works well for me.
You're welcome!
Can this be used as a realtime detection of latest updated_at changes in the database table? As of now we are using an ajax event looped every 1 second to check if there are updates from the database to trigger an table.ajax.reload?
yes this is perfect for checking realtime detection you just have to create an event listener for that.
and if you are in shared hosting where you don't have access to websocket you can use SSE for that purpose you can find more about it here
ruclips.net/video/Dcnud0U5-6E/видео.html
or
ruclips.net/video/A7I8r3Fhrww/видео.html
your video is very helpful to me i making real-time chat web it's a collage project and your video is very useful
You are most welcome
In my case, i could pushed just the message that i send in real time without Api or something like that, but i couldn't pushed in real time message received. That's the problem I'm trying to resolve. So i tried to use setInterval but that method make so hot my device.can you help me?
sorry but can you please explain a little bit more i did understand what problem you are facing
I'm looking for a way to show on my page, messages received without to use websocker or API.
I could show message that I send but for message received ,I need every time to refresh the page before to see.
That is the mater. @@eraufi
whe i hit conect in laravel-websockets dashboard i got this :Channels current state is unavailable
sorry but i never used laravel sail
Given beyondcode no longer maintains this, is it still a good idea to use it?
right now and since i started using laravel reverb for web socket i don't recommend using this package.
one of the reason is it not maintain any more
and another reason is that install and using reverb is much simpler and easier to use
Is it possible to connect a separate frontend react project with the backend with the websocket?
yes it's possible to connect a separate frontend react project you just need to intall echo and pusher-js on that project
could you give an example with ssl configurattion
I have plan to make a web application for youtube videos then host and use SSL hopefully in the near future
is it good for real time chat with livewire , and is it safe to use it in VPS server production
yes. It's better and the right way to create a chat system than SSE. SSE only for shared hosting where you can not use web sockets.
But how about using laravel-websocket in VPS , i think it could be better@@eraufi
hi buddy, clear me can i use laravel websocket in shared hosting
Using Laravel Beyondcode Websockets on shared hosting can be challenging. The main limitation is that shared hosting servers are based on OnDemand-Service, meaning that there is no continuous connection between clients and the server. This is a requirement for real-time technologies like websockets, which need to maintain a persistent connection to send and receive data in real-time
Is this way of using laravel websockets "free"? Because in the video you are using pusherjs and pusher has a free plan but it also has a pricing and such, right? Maybe Im wrong but I'd love to have websockets in my app and this seems to be a really good and easy way to implement them
yes this the way to use laravel websocket for free. in this way we only use the pusher library.
Can i get the repository?
you can find the web socket codes in this repo I've used it in the real time chart
github.com/ERaufi/Laravel-Chartjs
@@eraufi Thanks a lot, is there a tutorial to create a project like that repo?
@@josuamanalu5110 yes. I have made a full playlist for that repo you can check here.
ruclips.net/p/PLWiQT7FWaG1hwSaQzC6WC6JhmpPwIgBYL
@@eraufi Thankyou Sir, GBU 🙏
Amazing video, you explain very well
thank you.
Hi! I have a question, is laravel-websocket good for production or should i consider other options like socketi?
i have used it in many projects. up to now i have not faced any problem in production. at the end it depends on developer how they will use it
@@eraufi I see, thanks for your reply!
you are the best bro
thanks a lot. you too
Thank you. Very helpful!
Glad it was helpful!
I tried but events are not being triggered
I think this repo will help you. you can check the Real time Chart i've used Web-socket on that.
github.com/ERaufi/Laravel-Chartjs
great explanation!
Glad you think so!
Can you make more videos websockets
Sure.
@@eraufi thank you so much for your response. I will be waiting for your videos.
Muito obrigado, ajudou muito
Graças à você
حلو روعة !!
شكرًا
اشرح بالعربي لو سمحت اريد استخدام api تطبيق هاتف @@eraufi
brother create a chat app using sockets ( bootstap + laravel) ...completed tutorial
Sure. Hopefully in the future I will make a complete chat application with notifications
@@eraufi I will wait for that vedio