Learn Realtime / SocketIO in Frappe Framework!

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 19

  • @slightsight8087
    @slightsight8087 3 дні тому

    I have a web app on port 8000, socket is on 9000, how do i use socket for the web app on port 8000? The idea is when new things are added to the database it refreshes relevant pages

  • @mohammedabunada9761
    @mohammedabunada9761 Рік тому +1

    thanks you Mr Hussein , could we used socket IO to implement push notification in mobile applications (if No , why?) , does it overwork the server??

    • @BuildWithHussain
      @BuildWithHussain  Рік тому

      Hey 👋
      Push notifications are a very different thing. You can use socketIO in mobile apps as well for realtime (in-app) functionality, for example chat etc. Example: docs.flutter.dev/cookbook/networking/web-sockets
      But in case of push notifications, you will need to send notifications when the app is not open, etc. Example: firebase.google.com/docs/cloud-messaging or similar.

  • @anantacharya8549
    @anantacharya8549 Рік тому

    @buildwithhussain, we have created a cronjob to update certain doctype records. When that happens, we want to send an alert to the user. We are publishing a custom event using realtime. Is there a way to catch the realtime event by adding custom client script for that doctype?

    • @BuildWithHussain
      @BuildWithHussain  Рік тому

      Hi 👋
      Will the desk be open or not?

    • @anshacharya
      @anshacharya Рік тому

      @@BuildWithHussain not sure what you mean by open bench. I have installed frappe on our private cloud. Is that what you mean by open bench?

    • @BuildWithHussain
      @BuildWithHussain  Рік тому

      I meant the admin interface which will receive the events.

    • @anshacharya
      @anshacharya Рік тому

      ​@@BuildWithHussainyes, the admin interface is accessible. I'd appreciate your inputs on this topics

  • @marcos3416
    @marcos3416 Рік тому

    Make a video teaching how to make an external socket emit or listen to frappe events, like 2 sockets connected

    • @BuildWithHussain
      @BuildWithHussain  Рік тому

      Frappe doesn’t support external socket listens (yet).

  • @TheAswin12
    @TheAswin12 Рік тому

    I tried the same method but its not working for me .i did pasted the code from the documentation

    • @BuildWithHussain
      @BuildWithHussain  Рік тому

      Hey! What’s the issue?

    • @TheAswin12
      @TheAswin12 Рік тому

      @@BuildWithHussain not sure what's the issue. It's not even throwing an error . Do we have to configure anything before I run those line of code?. I checked with the 2 sites that I have but didn't help

    • @BuildWithHussain
      @BuildWithHussain  Рік тому

      @@TheAswin12 Was due to bench being in single tenant mode (i.e. `bench use` was used to set a current site). Discussed in chat ✌🏼

  • @njr10sp
    @njr10sp Рік тому

    installation frappe step by step on Mac please

    • @BuildWithHussain
      @BuildWithHussain  Рік тому

      👀

    • @njr10sp
      @njr10sp Рік тому

      well i have done many step. then after run the app ( bench start ) when i put the localhost:3000 or ... in the browser it error mysql access denied Using password YES. @@BuildWithHussain

    • @BuildWithHussain
      @BuildWithHussain  Рік тому

      Probably issue with mariadb root password setup, search with the error, you will find a solution that involves running some SQL commands in console.