On 07.03.2014, at 05:38, fm3391 <[email protected]> wrote: > Basically the server running on my desktop will have the muscle to handle the > live video and serving the webpage and the controller would receive > instructions for the microcontroller (the other server) to carry out.
So, if I understand correctly, the link between the Arduino and the web page should also be via SocketIO. In this case I would proxy the SocketIO/NodeJS application behind the web server and then have the NodeJS app contact the Arduino. You will need two URLs on the web server. 1) The "front-end", for example /main.html, - this will contain the webcam video and also load the SocketIO client javascript libraries so that controls on this page can contact the "back-end" SocketIO application. 2) The "back-end", for example, /backend, the NodeJS application running the SocketIO server which will have a connection to the front-end but also make connections to the Arduino. This will be an extra node application that is started from he command line. It will listen on a different port than the web server, say Port 8080. But you will proxy this application behind the web server (see the Nginx link) so that you can also access it from port 80. This is necessary because the SocketIO client javascript on the "front-end" can only contact servers at the same "origin" - meaning same domain name and port. I think I understood this right, hope this helps. Karl -- Ostendorf Software https://ostendorf.com/ mailto: [email protected] -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
