Node.JS: How to create a HTTP Chat Server?
问题 With the Net Stream Object with TCP works great (as presetend in the node.js introduction video), but how should I do this in HTTP? Is there a way to access sockets/clients within an http.createServer() ? Or what's the method to do it? I tried to figure out the solution from the official node chat demos souce code, but I don' really understand. I understand the client side js, but what's happening after I(as a client) send a message trough AJAX, to the server side js? How can I send to the