Skip to content

Commit 20d2e52

Browse files
petelefoolip
andauthored
Add WebSockets API (#1453)
Co-authored-by: Philip Jägenstedt <[email protected]>
1 parent e9d971b commit 20d2e52

File tree

2 files changed

+40
-9
lines changed

2 files changed

+40
-9
lines changed

features/draft/spec/websockets.yml renamed to features/websockets.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
draft_date: 2024-07-11
2-
name: WebSockets Standard
3-
description: TODO
1+
name: WebSockets
2+
description: The `WebSocket` API opens a two-way communication channel between the user's browser and a server.
43
spec: https://websockets.spec.whatwg.org/
4+
caniuse: websockets
5+
status:
6+
compute_from: api.WebSocket.WebSocket
57
compat_features:
68
- api.CloseEvent
79
- api.CloseEvent.CloseEvent
@@ -22,3 +24,8 @@ compat_features:
2224
- api.WebSocket.readyState
2325
- api.WebSocket.send
2426
- api.WebSocket.url
27+
- api.WebSocket.worker_support
28+
- api.WebSocketError
29+
- api.WebSocketError.WebSocketError
30+
- api.WebSocketError.closeCode
31+
- api.WebSocketError.reason

features/draft/spec/websockets.yml.dist renamed to features/websockets.yml.dist

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33

44
status:
55
baseline: high
6-
baseline_low_date: 2016-08-02
7-
baseline_high_date: 2019-02-02
6+
baseline_low_date: 2015-07-29
7+
baseline_high_date: 2018-01-29
88
support:
9-
chrome: "18"
9+
chrome: "5"
1010
chrome_android: "18"
11-
edge: "14"
11+
edge: "12"
1212
firefox: "11"
1313
firefox_android: "14"
14-
safari: "6"
15-
safari_ios: "6"
14+
safari: "5"
15+
safari_ios: "4.2"
1616
compat_features:
17+
# ⬇️ Same status as overall feature ⬇️
1718
# baseline: high
1819
# baseline_low_date: 2015-07-29
1920
# baseline_high_date: 2018-01-29
@@ -36,6 +37,19 @@ compat_features:
3637
- api.WebSocket.readyState
3738
- api.WebSocket.send
3839

40+
# baseline: high
41+
# baseline_low_date: 2015-07-29
42+
# baseline_high_date: 2018-01-29
43+
# support:
44+
# chrome: "5"
45+
# chrome_android: "18"
46+
# edge: "12"
47+
# firefox: "37"
48+
# firefox_android: "37"
49+
# safari: "5"
50+
# safari_ios: "5"
51+
- api.WebSocket.worker_support
52+
3953
# baseline: high
4054
# baseline_low_date: 2015-07-29
4155
# baseline_high_date: 2018-01-29
@@ -104,3 +118,13 @@ compat_features:
104118
# safari: "6"
105119
# safari_ios: "6"
106120
- api.CloseEvent.CloseEvent
121+
122+
# baseline: false
123+
# support:
124+
# chrome: "124"
125+
# chrome_android: "124"
126+
# edge: "124"
127+
- api.WebSocketError
128+
- api.WebSocketError.WebSocketError
129+
- api.WebSocketError.closeCode
130+
- api.WebSocketError.reason

0 commit comments

Comments
 (0)