Creating a Realtime Chat App with WebSockets 🕸️🧦 // Directus Realtime

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

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

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

    the work aside the software is really impressive! your pedagogy is the missing piece of many other communities! Congrats again!!!

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

      Oh my - adding that to a list of nicest things people have said. Thank you!

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

    can't wait to try this out! nice feature 🎉

  • @kulkarni005
    @kulkarni005 Год назад +10

    100000+ Points for VanillaJs and not using any specific framework !

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

      VERY important to us. We are unopinionated and you can use us with any tool. We do actually have a React and Vue version of this guide in our docs as well, but always lead with no framework!

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

      @@DirectusVideos but you have to use Vue when creating extensions...

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

      @@dereksolutionsrobins7117 Yup - you are correct. For any extensions using the Data Studio, you’d need to use Vue to create custom modules, interfaces, etc. But for API extensions like custom endpoints or hooks, it’s just plain old JavaScript (or Typescript)

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

      I thought it was for gryffindor again 🤣

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

    Could you please make a video tutorial on how to create custom extensions, especially for custom panels, modules and layouts. Thank you very much!

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

      Yes! We’re working on a whole set of guides for building each extension type at the moment - starting with written guides in the docs, but some will find their way into video form as well.

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

      ​@@DirectusVideos, I am looking forward to this documentation and video! Thanks for replying!

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

    Nice!

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

    One needs to be careful when to use "subscribe" and "subscription" :-) - Excellent example! Thank you very much, Bryant @Directus!

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

    nice, thanks

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

    that is be a great tool for a starter web site ✌ thanks! Are you sharing somewhere the code which i could compare to mine?
    thanks, I really appreciate the environment :)

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

      Here you go! docs.directus.io/guides/real-time/chat/javascript.html#full-code-sample It's been updated to use the new SDK :)

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

      nice! thanks Brian @@DirectusVideos

  • @user-cr6ik5xk5r
    @user-cr6ik5xk5r Год назад

    Is it based on binlog, or must it be triggered only when data is updated using directus's own API/UI?

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

      The latter. Within the Directus system, we emit events which are used in several places. This feature, at its core, is just emitting them through one more interface.

    • @user-cr6ik5xk5r
      @user-cr6ik5xk5r Год назад

      @@DirectusVideos thank you

  • @danielemartinelli4365
    @danielemartinelli4365 8 месяцев назад

    but the code for not copy?

  • @0xbarb
    @0xbarb Год назад +1

    can it handle thousands of users and messages ? is there any chance to overload ?

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

      The answer is always 'it depends on the available resources and what those thousands of users are doing'. Your horizontal scaling setup will have a big impact here. Directus Cloud is hosted pretty robustly, but if you self-host you'll need to make sure the requisite resources are there.

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

      @@DirectusVideos when you say, "requisite resources", what exactly are you referring to, as it relates to WS and scaling horizontally?

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

    Are websockets a better choice than using the REST API or GraphQL?

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

      It’s not that they are a better choice, but they are suited for different purposes. Check out our video called WTF are WebSockets to learn more

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

    What an amazing news can’t wait to test it. But I have to… so sad 😂

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

      Did you find the time? 👀

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

      @@DirectusVideos yes I do. It’s awesome. 👏🏻 thank you Directus for being so amazing. Never seen something like this on my life. Fast answers, cool features, very cool community and it’s free. Things are never free and service is bad. You run the world White rabbit 🐇😄