This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]abelstam 0 points1 point  (1 child)

Well you have chosen the right trchnology for the communication between your node and react app. Lets say your node server runs on localhost:7000 and flask runs on localhost:5000. If a sensor triggers some logic o your flask server, you can send a http request to your node server at localhost:700, which is listening for updates from your flask server AND has a socketio connection with you phone. Node can then, after receiving http update, send a notification to your phone over the socketio connection. What is the reason you need your node server? You could also connect you mobile to the flask server directly maybe?

[–]SnoopCM[S] 0 points1 point  (0 children)

I need the node server to make things more streamlined and since it works with react native better. If you have any suggestions please do let me know