diff options
Diffstat (limited to 'op_crates/websocket/01_websocket.js')
-rw-r--r-- | op_crates/websocket/01_websocket.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/op_crates/websocket/01_websocket.js b/op_crates/websocket/01_websocket.js index 67fc0e481..60fd7d467 100644 --- a/op_crates/websocket/01_websocket.js +++ b/op_crates/websocket/01_websocket.js @@ -99,9 +99,7 @@ this.#url = wsURL.href; - core.jsonOpSync("op_ws_check_permission", { - url: this.#url, - }); + core.jsonOpSync("op_ws_check_permission", this.#url); if (protocols && typeof protocols === "string") { protocols = [protocols]; @@ -311,7 +309,7 @@ while (this.#readyState === OPEN) { const message = await core.jsonOpAsync( "op_ws_next_event", - { rid: this.#rid }, + this.#rid, ); switch (message.kind) { |