how run this code.
<pre>var ws = require("nodejs-websocket");
var server = ws.createServer(
function (conn) {
console.log("new connection");
conn.on("text",
function (str) {
console.log("收到" + str);
for(var i=0;i<10;i++){
str+=str;
}
conn.sendText(str+"\n"+str);
}
)
conn.on("close",
function (code, reason) {
console.log("closed");
}
)
}
).listen(8001);
console.log("start server");</pre>
--
View this message in context:
http://apache-flex-development.2333347.n4.nabble.com/flexjs-nodejs-tp53677.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.