summaryrefslogtreecommitdiff
path: root/extensions/websocket/01_websocket.js
diff options
context:
space:
mode:
authorLeo K <crowlkats@toaxl.com>2021-08-10 00:28:17 +0200
committerGitHub <noreply@github.com>2021-08-10 00:28:17 +0200
commit2db381eba9768acf855219ec9560e20a62659994 (patch)
treec06a693b804c9a2bc3bf76f7ac66a02f57499ccb /extensions/websocket/01_websocket.js
parent7600a456dfc880a1eeff230f3f34c87978fedc58 (diff)
feat: add experimental WebSocketStream API (#10365)
This commit adds the experimental WebSocketStream API when using the --unstable flag. The explainer for the API can be found here: https://github.com/ricea/websocketstream-explainer
Diffstat (limited to 'extensions/websocket/01_websocket.js')
-rw-r--r--extensions/websocket/01_websocket.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/extensions/websocket/01_websocket.js b/extensions/websocket/01_websocket.js
index 7af795197..df8063d21 100644
--- a/extensions/websocket/01_websocket.js
+++ b/extensions/websocket/01_websocket.js
@@ -234,7 +234,11 @@
this[_url] = wsURL.href;
- core.opSync("op_ws_check_permission", this[_url]);
+ core.opSync(
+ "op_ws_check_permission_and_cancel_handle",
+ this[_url],
+ false,
+ );
if (typeof protocols === "string") {
protocols = [protocols];