I'm new to NowJS / node.js and attempting to learn through the provided examples, etc. Hopefully my question(s) won't be too stupid as I'm not quite sure yet where NowJS stops and node.js begins.
My end goal is to create chat functionality for the Drupal CMS. I'm very familiar with Drupal but very new to NowJS / Node.js. I plan on having Drupal render the client side html / javascript chat page, similar to the helloworld.html example provided with NowJS. Since Drupal runs on the LAMP stack I'm looking at the various setup options for Drupal + NowJS. After scouring and googling it looks like these are the possibilities...
1) Node server listening on port 80 and using node-http-proxy to send Drupal requests to apache on another port.
I was looking at
this example but I'm lost as to what the
apacheUrls should be to send Drupal requests through to apache.
2) Apache listening to port 80; Node listening on another port.
In this case I'm not sure how the Drupal rendered chat page would connect to the node server on the same IP but with a different port.
3) Apache and Node on two different IPs.
Similar to #2 I'm not sure how to connect the Drupal rendered chat page to the node server.