Socket.IO 1.2.1 发布

jopen 9年前

socket-io_xd7ky.gif

Socket.IO 1.2.1 发布,此版本包括非常重要的 bug 修复,改进了 CDN 的 DNS 服务的可靠性(导致在 2014 年 11 月 5 日有一次短暂的停机)。

改进记录

服务器

  • Bumped engine.io to include a fix for leaks in the ws WebSocket Server. Thanks @3rd-Eden for his ws patch.

  • Prevent a crash that arises from a socket.io-protocol violation. Sending a null engine.io message packet would throw an exception, which wasn’t being translated into an error event.

  • Propagate all error events from the underlying transport to the open Socket objects.

  • Minor cosmetic fixes.

客户端

  • README fixes to prevent double events in the example upon reconnection [@nkzawa]

  • Fix subsequent reconnections after reconnecting manually [@nkzawa]

  • Make ACK event callbacks callable multiple times without side-effects [@thexeos]

  • Bumped uglify-js [@superlukas]

通过 CDN Grab 新的客户端:

<script src="https://cdn.socket.io/socket.io-1.2.1.js"></script>

更多内容请看发行说明

Socket.IO 实现了实时双向的基于事件的通讯机制。旨在让各种浏览器与移动设备上实现实时app功能,模糊化各种传输机制。

Socket.IO 是跨平台,多种连接方式自动切换,做即时通讯方面的开发很方便,而且能和expressjs提供的传统请求方式很好的结合,即可以 在同一个域名,同一个端口提供两种连接方式:request/response, websocket(flashsocket,ajax…).

133515_6pdb_89964.png

来自:http://www.oschina.net/news/57302/socket-io-1-2-1