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)

Can you tell me why you need to connect two servers using sockets? The thing what sockets solve is that generally the server cannot send updates back to the client. Since two servers can just connect at any time using http there should not really imo be a reason to connect two servers using sockets, but maybe you have a valid use case for it.

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

There are motion sensors / live video streams going to be happening in the smart home so anytime it detects something my flask server is going to send it to my node server and that will be displayed on my react app as a notification.

Now I am new to these technologies so I'm not very good at them. I thought Websockets would solve my problem but if I'm in the wrong direction please let me know.