HI, correct me If I am wrong please,I am new to node.js,I have an existing webpage that uses ajax to request data to server in shorter time 2 seconds is my default,I want to change this ajax code to node.js,but I am confuse because the node.js will not listen to port 80,my webpage is listening in port 80. how can I apply this node.js code.
Point your page at whichever port Node.js is running on (eg http://yoursite.com:3000) or point a subdomain at that port. (eg http://ajax.yoursite.com) The latter is cleaner, but is more complicated to set up if you don’t already know how.