0

Socketio 网站正在使用 node.js 作为套接字仿真的后端,我正在尝试使用 Tornadoio 作为后端。但是请注意将文件 socket.io.js 删除

4

1 回答 1

0

Well you don't need that file in order to use websockets.

you can use

ws = new WebSocket('ws://localhost:8888/ws');
ws.onopen = function (str) {
    console.log("Someone sent: ", str);
};

I had the same doubt when I switch from node.js to Tornado.

Hope it helps

于 2013-09-07T02:12:10.423 回答