On 06.03.2014, at 03:59, fm3391 <[email protected]> wrote: > I am also running an Apache web server on my PC. The goal is to serve up a > page(s) on the Apache server that can send socket.io messages to the > micro-controller.
The first question is do you need Apache? Nginx is preferred and it supports proxying websocket connections as well. See here http://nginx.org/en/docs/http/websocket.html The second question is do you need a web server at all? It is possible to create a simple ExpressJS application in node that supports SocketIO (and websockets) and can server web pages directly. You will need to create a NodeJS application anyway and can then choose to access it directly or proxied behind another web server. See here http://www.williammora.com/2013/03/nodejs-tutorial-building-chatroom-with.html My opinion is that an extra application server as another poster suggested is not necessary. Passenger can help if you are trying to scale large applications but as this is a home-hobby project this is not the case. Keep it simple. Karl Ostendorf -- Ostendorf Software https://ostendorf.com/ tel: +49 151 1270 4213 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/groups/opt_out.
