Table of contents
- 1.1.1. Documentation
- 1.1.2. Tools
- 1.1.3. Related Topics
- 2. See also
- 3. Browser compatibility
- 3.1. Gecko notes
WebSockets is a technology that makes it possible to open an interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply.
Documentation
| Tools
Related Topics |
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Version -76 support Obsolete | 6 | 4.0 (2.0) | -- | 11.00 (disabled) | 5.0.1 |
| Protocol version 7 support | -- | 6.0 (6.0) use MozWebSocket. | -- | -- | -- |
| Protocol version 10 support | 14 | 7.0 (7.0) use MozWebSocket. | HTML5 Labs | ? | ? |
| RFC 6455 Support (IETF Draft 17) | 16 | (11.0) | ? | ? | ? |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Version -76 support Obsolete | ? | ? | ? | ? | ? |
| Protocol version 7 support | ? | ? | ? | ? | ? |
| Protocol version 8 support (IETF draft 10) | ? | 7.0 (7.0) | ? | ? | ? |
Gecko notes
WebSockets support in Firefox is continuing to track the evolving WebSocket specification. Firefox 6 implements version 7 of the underlying protocol, while Firefox 7 implements version 8 (as specified by IETF draft 10). Firefox mobile received WebSocket support in Firefox mobile 7.0.
Prior to Gecko 6.0 (Firefox 6.0 / Thunderbird 6.0 / SeaMonkey 2.3)
, there was, incorrectly, a WebSocket object that some sites were thinking implied that WebSocket services were not prefixed; this object has been renamed to MozWebSocket.
Starting in Gecko 7.0 (Firefox 7.0 / Thunderbird 7.0 / SeaMonkey 2.4)
, the network.websocket.max-connections preference is used to determine the maximum number of WebSocket connections that can be open at a time. The default value is 200.
Starting in Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5) , the deflate-stream extension to the WebSocket protocol has been disabled, since it's been deprecated from the specification drafts. This resolves incompatibilities with some sites.
about:config and setting the network.websocket.enabled preference to true. You will also need to set the network.websocket.override-security-block preference to true in order to allow initializing a WebSocket connection.

