WebSockets
Widely available
The WebSocket
API opens a two-way communication channel between the user's browser and a server.
Compatibility (view on caniuse.com)
- Chrome 5 Released on 2010-05-25
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 11 Released on 2012-03-13
- Firefox for Android 14 Released on 2012-06-26
- Safari 5 Released on 2010-06-07
- Safari on iOS 4.2 Released on 2010-11-22
MDN docs
- CloseEvent
- CloseEvent.CloseEvent
- CloseEvent.code
- CloseEvent.reason
- CloseEvent.wasClean
- WebSocket
- WebSocket.WebSocket
- WebSocket.binaryType
- WebSocket.bufferedAmount
- WebSocket.close
- WebSocket.close_event
- WebSocket.error_event
- WebSocket.extensions
- WebSocket.message_event
- WebSocket.open_event
- WebSocket.protocol
- WebSocket.readyState
- WebSocket.send
- WebSocket.url
Specifications
- WebSockets Standard, from HTML Workstream (WHATWG).
BCD data
- api.CloseEvent
- api.CloseEvent.CloseEvent
- api.CloseEvent.code
- api.CloseEvent.reason
- api.CloseEvent.wasClean
- api.WebSocket
- api.WebSocket.WebSocket
- api.WebSocket.binaryType
- api.WebSocket.bufferedAmount
- api.WebSocket.close
- api.WebSocket.close_event
- api.WebSocket.error_event
- api.WebSocket.extensions
- api.WebSocket.message_event
- api.WebSocket.open_event
- api.WebSocket.protocol
- api.WebSocket.readyState
- api.WebSocket.send
- api.WebSocket.url
- api.WebSocket.worker_support
- api.WebSocketError
- api.WebSocketError.WebSocketError
- api.WebSocketError.closeCode
- api.WebSocketError.reason