Socket.IO 1.2.1 發布
Socket.IO 1.2.1 發布,此版本包括非常重要的 bug 修復,改進了 CDN 的 DNS 服務的可靠性(導致在 2014 年 11 月 5 日有一次短暫的停機)。
改進記錄
服務器
Bumped
engine.io
to include a fix for leaks in thews
WebSocket Server. Thanks @3rd-Eden for hisws
patch.Prevent a crash that arises from a
socket.io-protocol
violation. Sending anull
engine.io message packet would throw an exception, which wasn’t being translated into anerror
event.Propagate all
error
events from the underlying transport to the openSocket
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…).
來自:http://www.oschina.net/news/57302/socket-io-1-2-1