Lesson 21 Laravel Websockets

Поделиться
HTML-код
  • Опубликовано: 21 янв 2025

Комментарии • 63

  • @alissonguedes65
    @alissonguedes65 Год назад +4

    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! ❤❤

    • @VictorRajesh
      @VictorRajesh Год назад +1

      Os indianos são os melhores kkkkk

  • @AbdulahmedAbdulhakeem
    @AbdulahmedAbdulhakeem 6 месяцев назад +2

    This video works really well for me, thank you so much.

    • @eraufi
      @eraufi  6 месяцев назад

      Glad it helped!

  • @ronaldngarombo1026
    @ronaldngarombo1026 Год назад +3

    This video has been really helpful. Thank you.

    • @eraufi
      @eraufi  Год назад

      thanks to you

  • @AbdulahmedAbdulhakeem
    @AbdulahmedAbdulhakeem 6 месяцев назад +2

    Thank you so much for this video, it really works well for me.

    • @eraufi
      @eraufi  6 месяцев назад

      You're welcome!

  • @lancenacabuan
    @lancenacabuan 11 месяцев назад

    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?

    • @eraufi
      @eraufi  11 месяцев назад +1

      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

  • @Tushar-cb3xb
    @Tushar-cb3xb Год назад +1

    your video is very helpful to me i making real-time chat web it's a collage project and your video is very useful

    • @eraufi
      @eraufi  Год назад

      You are most welcome

  • @musikrelax4809
    @musikrelax4809 9 месяцев назад

    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?

    • @eraufi
      @eraufi  9 месяцев назад +1

      sorry but can you please explain a little bit more i did understand what problem you are facing

    • @musikrelax4809
      @musikrelax4809 9 месяцев назад

      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

  • @yacine5046
    @yacine5046 10 месяцев назад

    whe i hit conect in laravel-websockets dashboard i got this :Channels current state is unavailable

    • @eraufi
      @eraufi  10 месяцев назад

      sorry but i never used laravel sail

  • @tyronmbiachare
    @tyronmbiachare 3 месяца назад

    Given beyondcode no longer maintains this, is it still a good idea to use it?

    • @eraufi
      @eraufi  3 месяца назад

      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

  • @AlejandroCabezaCarsí
    @AlejandroCabezaCarsí Год назад

    Is it possible to connect a separate frontend react project with the backend with the websocket?

    • @eraufi
      @eraufi  Год назад

      yes it's possible to connect a separate frontend react project you just need to intall echo and pusher-js on that project

  • @HS-mg9np
    @HS-mg9np Год назад +1

    could you give an example with ssl configurattion

    • @eraufi
      @eraufi  Год назад +1

      I have plan to make a web application for youtube videos then host and use SSL hopefully in the near future

  • @abdalkhalekchamkha3622
    @abdalkhalekchamkha3622 Год назад

    is it good for real time chat with livewire , and is it safe to use it in VPS server production

    • @eraufi
      @eraufi  Год назад

      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.

    • @abdalkhalekchamkha3622
      @abdalkhalekchamkha3622 Год назад

      But how about using laravel-websocket in VPS , i think it could be better@@eraufi

  • @ctutorialinhindiurdu2116
    @ctutorialinhindiurdu2116 Год назад

    hi buddy, clear me can i use laravel websocket in shared hosting

    • @eraufi
      @eraufi  Год назад

      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

  • @abjzzz
    @abjzzz Год назад +1

    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

    • @eraufi
      @eraufi  Год назад

      yes this the way to use laravel websocket for free. in this way we only use the pusher library.

  • @josuamanalu5110
    @josuamanalu5110 7 месяцев назад

    Can i get the repository?

    • @eraufi
      @eraufi  7 месяцев назад +1

      you can find the web socket codes in this repo I've used it in the real time chart
      github.com/ERaufi/Laravel-Chartjs

    • @josuamanalu5110
      @josuamanalu5110 7 месяцев назад

      @@eraufi Thanks a lot, is there a tutorial to create a project like that repo?

    • @eraufi
      @eraufi  7 месяцев назад +1

      @@josuamanalu5110 yes. I have made a full playlist for that repo you can check here.
      ruclips.net/p/PLWiQT7FWaG1hwSaQzC6WC6JhmpPwIgBYL

    • @josuamanalu5110
      @josuamanalu5110 7 месяцев назад

      @@eraufi Thankyou Sir, GBU 🙏

  • @VictorRajesh
    @VictorRajesh Год назад

    Amazing video, you explain very well

  • @shickler
    @shickler Год назад

    Hi! I have a question, is laravel-websocket good for production or should i consider other options like socketi?

    • @eraufi
      @eraufi  Год назад +3

      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

    • @shickler
      @shickler Год назад +2

      @@eraufi I see, thanks for your reply!

  • @adnanalmaqwali7824
    @adnanalmaqwali7824 9 месяцев назад

    you are the best bro

    • @eraufi
      @eraufi  9 месяцев назад

      thanks a lot. you too

  • @nickyscottfx
    @nickyscottfx Год назад +1

    Thank you. Very helpful!

    • @eraufi
      @eraufi  Год назад +1

      Glad it was helpful!

  • @converge40
    @converge40 Год назад

    I tried but events are not being triggered

    • @eraufi
      @eraufi  Год назад

      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

  • @mohamadabdalhai7998
    @mohamadabdalhai7998 Год назад

    great explanation!

    • @eraufi
      @eraufi  Год назад

      Glad you think so!

  • @ashiramin753
    @ashiramin753 Год назад +1

    Can you make more videos websockets

    • @eraufi
      @eraufi  Год назад +1

      Sure.

    • @ashiramin753
      @ashiramin753 Год назад

      @@eraufi thank you so much for your response. I will be waiting for your videos.

  • @5vinicius100
    @5vinicius100 Год назад +1

    Muito obrigado, ajudou muito

    • @eraufi
      @eraufi  Год назад +1

      Graças à você

  • @visualizemachinedata
    @visualizemachinedata Год назад +2

    حلو روعة !!

    • @eraufi
      @eraufi  Год назад

      شكرًا

    • @NFM-nb7dl
      @NFM-nb7dl Год назад

      اشرح بالعربي لو سمحت اريد استخدام api تطبيق هاتف @@eraufi

  • @usamaramzan2497
    @usamaramzan2497 Год назад

    brother create a chat app using sockets ( bootstap + laravel) ...completed tutorial

    • @eraufi
      @eraufi  Год назад +1

      Sure. Hopefully in the future I will make a complete chat application with notifications

    • @usamaramzan2497
      @usamaramzan2497 Год назад +2

      @@eraufi I will wait for that vedio