javascript - How do I implement COMET on Azure with Node.JS? -



javascript - How do I implement COMET on Azure with Node.JS? -

now microsoft ported node.js azure next thing need enable comet on platform?

also, proper way host server?

var sys = require('util'), http = require('http'); http.createserver(function (req, res) { settimeout(function () { res.setheader("200", {'content-type': 'text/plain'}); res.write('hello world'); res.end(); }, 2000); }).listen(8000); sys.puts('server running @ http://127.0.0.1:8000/');

you can utilize socket.io module. both long polling , websocket bindings work in azure worker role. in web role you're restricted long polls.

javascript node.js azure comet

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -