From 2aed322dd507a8568b6ee6f4897e9a8e3220f763 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Mon, 5 Apr 2021 18:40:24 +0200 Subject: refactor: convert ops to use serde_v8 (#10009) This commit rewrites most of the ops to use "serde_v8" instead of "json" serialization. --- op_crates/websocket/01_websocket.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'op_crates/websocket/01_websocket.js') 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) { -- cgit v1.2.3