编辑“︁
WebSocket
”︁(章节)
跳转到导航
跳转到搜索
Template:Editnotice load/content
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
== 浏览器支持 == WebSocket协议的安全版本在Firefox 6<ref>{{cite web | url=https://developer.mozilla.org/en/WebSockets | title=WebSocket enabled in Firefox 6 | author=Dirkjan Ochtman | date=May 27, 2011 | work=Mozilla.org | accessdate=2011-06-30 | archive-date=2012-05-26 | archive-url=https://web.archive.org/web/20120526230019/https://developer.mozilla.org/en/WebSockets | dead-url=yes }}</ref>、Safari 6、Google Chrome 14<ref>{{cite web | url=https://www.chromium.org/developers/web-platform-status | title=Chromium Web Platform Status | accessdate=2011-08-03 | archive-date=2017-03-04 | archive-url=https://web.archive.org/web/20170304203008/http://www.chromium.org/developers/web-platform-status | dead-url=no }}</ref>、Opera 12.10和Internet Explorer 10中实现。<ref>{{cite web |url=https://msdn.microsoft.com/en-us/library/ie/hh673567(v=vs.85).aspx |title=WebSockets (Windows) |publisher=Microsoft |date=2012-09-28 |accessdate=2012-11-07 |archive-date=2015-03-25 |archive-url=https://web.archive.org/web/20150325091443/https://msdn.microsoft.com/en-us/library/ie/hh673567(v=vs.85).aspx |dead-url=no }}</ref>详细的协议测试套件报告<ref name="autobahn">{{cite web |url=http://autobahn.ws/testsuite/reports/clients/index.html |title=WebSockets Protocol Test Report |publisher=Tavendo.de |date=2011-10-27 |accessdate=2011-12-10 |archive-url=https://web.archive.org/web/20160922040928/http://autobahn.ws/testsuite/reports/clients/index.html |archive-date=2016-09-22 |dead-url=yes }}</ref>列出了这些浏览器与特定协议方面的一致性。 Opera 11和Safari 5中实现了较旧的,不太安全的协议版本,以及iOS 4.2中的Safari移动版本。<ref>{{cite web | url=http://www.appleinsider.com/articles/10/11/23/apple_adds_accelerometer_websockets_support_to_safari_in_ios_4_2.html | title=Apple adds accelerometer, WebSockets support to Safari in iOS 4.2 | author=Katie Marsal | date=November 23, 2010 | work=AppleInsider.com | accessdate=2011-05-09 | archive-date=2013-07-17 | archive-url=https://www.webcitation.org/6IAlTod14?url=http://appleinsider.com/articles/10/11/23/apple_adds_accelerometer_websockets_support_to_safari_in_ios_4_2.html | dead-url=no }}</ref>OS7中的BlackBerry Browser实现了WebSockets。<ref>{{cite web |title=Web Sockets API |url=http://docs.blackberry.com/en/developers/deliverables/29271/Web_Sockets_support_1582781_11.jsp |publisher=[[BlackBerry Limited|BlackBerry]] |accessdate=8 July 2011 |deadurl=yes |archiveurl=https://web.archive.org/web/20110610191150/http://docs.blackberry.com/en/developers/deliverables/29271/Web_Sockets_support_1582781_11.jsp |archivedate=2011-06-10 }}</ref>由于存在漏洞,它在Firefox 4和5<ref>{{cite web | url=https://hacks.mozilla.org/2010/12/websockets-disabled-in-firefox-4/ | title=WebSocket disabled in Firefox 4 | author=Chris Heilmann | date=December 8, 2010 | work=Hacks.Mozilla.org | accessdate=2011-05-09 | archive-date=2017-03-06 | archive-url=https://web.archive.org/web/20170306114251/https://hacks.mozilla.org/2010/12/websockets-disabled-in-firefox-4/ | dead-url=no }}</ref>以及Opera 11中被禁用。<ref>{{cite web | url=http://my.opera.com/chooseopera/blog/2010/12/10/regarding-websocket | title=Regarding WebSocket | author=Aleksander Aas | date=December 10, 2010 | work=My Opera Blog | accessdate=2011-05-09 | archiveurl=https://web.archive.org/web/20101215010748/http://my.opera.com/chooseopera/blog/2010/12/10/regarding-websocket | archivedate=2010-12-15 | dead-url=no }}</ref> 所有最新的浏览器支持最新规范(RFC 6455)的WebSocket协议。一个详细的测试报告<ref name="autobahn"/>列出了这些浏览器支持的Websocket版本。 {| class="wikitable" |+浏览器支持现状 ! 协议 ! 发布日期 ! IE ! Firefox<ref>{{cite web |url=https://developer.mozilla.org/en/WebSockets |title=WebSockets (support in Firefox) |publisher=Developer.mozilla.org |date=2011-09-30 |accessdate=2011-12-10 |archive-date=2012-05-26 |archive-url=https://web.archive.org/web/20120526230019/https://developer.mozilla.org/en/WebSockets |dead-url=yes }}</ref>(个人电脑) ! Firefox (Android) ! Chrome(个人电脑,手机) ! Safari(Mac, iOS) ! Opera(个人电脑,手机) ! Android浏览器 |- ! [http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-75 hixie-75] {{Wayback|url=http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-75 |date=20100608054358 }} | 2010年2月4日 | | | | 4 | 5.0.0 | | |- ! [http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-76 hixie-76]{{Wayback|url=http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-76 |date=20120420190106 }}<br/>[http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-00 hybi-00] {{Wayback|url=http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-00 |date=20210420080750 }} | 2010年5月10日,<br/>2010年5月23日 | | 4.0(已禁用) | | 6 | 5.0.1 | 11.00(已禁用) | |- ! 7 [http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07 hybi-07]{{Wayback|url=http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07 |date=20120406124556 }} | 2011年4月22日 | | 6<ref>{{cite web |url=https://bugzilla.mozilla.org/show_bug.cgi?id=640003 |title=Bug 640003 - WebSockets - upgrade to ietf-06 |publisher=Bugzilla.mozilla.org |date= |accessdate=2011-12-10 |archive-date=2021-04-01 |archive-url=https://web.archive.org/web/20210401044535/https://bugzilla.mozilla.org/show_bug.cgi?id=640003 }}</ref><sup>1</sup> | | | | | |- ! 8 [http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10 hybi-10] {{Wayback|url=http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10 |date=20210419085001 }} | 2011年7月11日 | | 7<ref>[https://bugzilla.mozilla.org/show_bug.cgi?id=640003#c91 WebSockets - upgrade to ietf-07] {{Wayback|url=https://bugzilla.mozilla.org/show_bug.cgi?id=640003#c91 |date=20210401044535 }}></ref><sup>1</sup> | 7 | 14<ref>{{cite web |url=http://code.google.com/p/chromium/issues/detail?id=64470 |title=Chromium bug 64470 |publisher=Code.google.com |date=2010-11-25 |accessdate=2011-12-10 |archive-date=2015-12-31 |archive-url=https://web.archive.org/web/20151231184436/https://code.google.com/p/chromium/issues/detail?id=64470 }}</ref> | | | |- ! 13 RFC 6455 | 2011年12月 | 10<ref>{{cite web |url=http://blogs.msdn.com/b/ie/archive/2012/03/19/websockets-in-windows-consumer-preview.aspx |title=WebSockets in Windows Consumer Preview |publisher=IE Engineering Team |date=2012-03-19 |accessdate=2012-07-23 |archive-date=2012-08-07 |archive-url=https://web.archive.org/web/20120807040313/http://blogs.msdn.com/b/ie/archive/2012/03/19/websockets-in-windows-consumer-preview.aspx |dead-url=no }}</ref> | 11 | 11 | 16<ref>{{cite web |url=http://trac.webkit.org/changeset/97249 |title=WebKit Changeset 97247: WebSocket: Update WebSocket protocol to hybi-17 |publisher=Trac.webkit.org |date= |accessdate=2011-12-10 |archive-date=2015-12-31 |archive-url=https://web.archive.org/web/20151231184436/https://trac.webkit.org/changeset/97249 }}</ref> | 6 | 12.10<ref>{{cite web |url=http://my.opera.com/ODIN/blog/2012/08/03/a-hot-opera-12-50-summer-time-snapshot |title=A hot Opera 12.50 summer-time snapshot |publisher=Opera Developer News |date= |accessdate=2012-08-03 |archiveurl=https://web.archive.org/web/20120805234006/http://my.opera.com/ODIN/blog/2012/08/03/a-hot-opera-12-50-summer-time-snapshot |archivedate=2012-08-05 |deadurl=yes }}</ref> | 4.4<ref>{{cite web |url=http://caniuse.com/#search=websocket |title=Compatibility tables for support of HTML5, CSS3, SVG and more in desktop and mobile browsers |publisher=caniuse.com |accessdate=2014-02-10 |archive-date=2017-04-08 |archive-url=https://web.archive.org/web/20170408034823/http://caniuse.com/#search=websocket |dead-url=no }}</ref> |} <sup>1</sup>基于Gecko 6–10版本的浏览器的WebSocket对象为“mozwebsocket”,<ref>{{cite web |url=https://developer.mozilla.org/en/WebSockets |title=WebSockets - MDN |publisher=Developer.mozilla.org |date=2011-09-30 |accessdate=2011-12-10 |archive-date=2012-05-26 |archive-url=https://web.archive.org/web/20120526230019/https://developer.mozilla.org/en/WebSockets |dead-url=yes }}</ref>需要添加额外的代码。
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
页面
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息