node.js+Socket.IOã§ãªã¢ã«ã¿ã¤ã ã¢ããªã±ã¼ã·ã§ã³ãä½ããããã ãã©ãWebSocket使ãã«ãã¦ãXHR-Polling使ãã«ãã¦ããµã¼ãçµç±ãã¦éä¿¡ãã¦ããã°å½ç¶ã¿ã¤ã ã©ã°ã¯ããããã§ãããã£ã¦ã©ããããé 延ãããã®ãªãã ããï¼ ã¨æã£ã¦ããããªãµã¼ãã§è©¦ãã¦ã¿ã(追è¨ãã¾ãã)ã 測å®æ¹æ³ var server = require('http').createServer(function (req, res) { require('data-section').get('html', function (err, data) { res.writeHead(200, { 'Content-Type': 'text/html' }); res.end(data); }); }); var io = require('socket.io').listen(server);
{{#tags}}- {{label}}
{{/tags}}