1. Socket.IO 1.1 服务器 var http = require('http'); var sio = require('socket.io'); var fs = require('fs'); var server = http.createServer(function(req,rsp){ rsp.writeHead(200,{'Content-Type':'text/html'}); rsp.write('success'); }); server.listen(12345)…