// 引入WebSocket模块 var ws = require('nodejs-websocket') var PORT = 3030 var server = ws.createServer(function(conn){ console.log('新连接') conn.on("text",function(str){ console.log("接受数据"+str) conn.sendText("返回数据:"+str) }) conn.on
In this post I explain how to configure a socket.io node.js application to use of WebSockets when hosting it in IIS 8 using iisnode. This complements a recent post in which I showed how to host node.js WebSocket applications in IIS on Windows using i