From 531754c35497568aa2f19179344eb9e205c9a4b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 25 Apr 2023 13:53:06 +0200 Subject: refactor(ext/websocket): use specialized ops (#18819) Instead of relying on `op_ws_send` to send different kinds of messages, use specialized ops everywhere. --- cli/js/40_testing.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli/js/40_testing.js') diff --git a/cli/js/40_testing.js b/cli/js/40_testing.js index a0dcaf499..146448356 100644 --- a/cli/js/40_testing.js +++ b/cli/js/40_testing.js @@ -128,7 +128,10 @@ const OP_DETAILS = { "op_ws_close": ["close a WebSocket", "awaiting until the `close` event is emitted on a `WebSocket`, or the `WebSocketStream#closed` promise resolves"], "op_ws_create": ["create a WebSocket", "awaiting until the `open` event is emitted on a `WebSocket`, or the result of a `WebSocketStream#connection` promise"], "op_ws_next_event": ["receive the next message on a WebSocket", "closing a `WebSocket` or `WebSocketStream`"], - "op_ws_send": ["send a message on a WebSocket", "closing a `WebSocket` or `WebSocketStream`"], + "op_ws_send_text": ["send a message on a WebSocket", "closing a `WebSocket` or `WebSocketStream`"], + "op_ws_send_binary": ["send a message on a WebSocket", "closing a `WebSocket` or `WebSocketStream`"], + "op_ws_send_ping": ["send a message on a WebSocket", "closing a `WebSocket` or `WebSocketStream`"], + "op_ws_send_pong": ["send a message on a WebSocket", "closing a `WebSocket` or `WebSocketStream`"], }; // Wrap test function in additional assertion that makes sure -- cgit v1.2.3