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
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.
@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 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
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
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
thanks you Mr Hussein , could we used socket IO to implement push notification in mobile applications (if No , why?) , does it overwork the server??
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.
@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?
Hi 👋
Will the desk be open or not?
@@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?
I meant the admin interface which will receive the events.
@@BuildWithHussainyes, the admin interface is accessible. I'd appreciate your inputs on this topics
Make a video teaching how to make an external socket emit or listen to frappe events, like 2 sockets connected
Frappe doesn’t support external socket listens (yet).
I tried the same method but its not working for me .i did pasted the code from the documentation
Hey! What’s the issue?
@@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
@@TheAswin12 Was due to bench being in single tenant mode (i.e. `bench use` was used to set a current site). Discussed in chat ✌🏼
installation frappe step by step on Mac please
👀
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
Probably issue with mariadb root password setup, search with the error, you will find a solution that involves running some SQL commands in console.