您的位置:首页 > 其它

SocketIO --- 安装篇

2015-05-22 17:28 330 查看
 下载地址:http://socket.io/download/

明天继续~

There’s actually nothing to download. At least not from this website. Here’s how to get up and running with Socket.IO


Getting the Socket.IO Server

The officially maintained Socket.IO server is written in Node.JS and available on NPM. To install Node.JS and NPM, click the Install button on
the Node.JS website. Then run the following command:
npm install socket.io


If you want to learn how to use Socket.IO through pratical examples, head to Get
Started.


Getting the Socket.IO Client

We distribute the browser client through our CDN, for free, forever.
<script src="https://cdn.socket.io/socket.io-1.3.5.js"></script>


If you want to grab the source, grab the 
socket.io.js
 file
from the socket.io-client repository.

Our client codebase runs on both Node.JS and browsers, and it’s also compatible with browserify.

Additionally, Socket.IO servers automatically serve the client for your convenience:
<script src="http://your-io-server/socket.io/socket.io.js">
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  SocketIO