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
Post a Comment