summaryrefslogtreecommitdiff
path: root/ext/websocket/01_websocket.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/websocket/01_websocket.js')
-rw-r--r--ext/websocket/01_websocket.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/websocket/01_websocket.js b/ext/websocket/01_websocket.js
index 5f0f648a7..3417eff67 100644
--- a/ext/websocket/01_websocket.js
+++ b/ext/websocket/01_websocket.js
@@ -26,7 +26,6 @@ const {
ArrayPrototypeJoin,
ArrayPrototypeMap,
ArrayPrototypeSome,
- DataView,
ErrorPrototypeToString,
ObjectDefineProperties,
ObjectPrototypeIsPrototypeOf,
@@ -50,6 +49,7 @@ const {
op_ws_create,
op_ws_close,
op_ws_send_binary,
+ op_ws_send_binary_ab,
op_ws_send_text,
op_ws_next_event,
op_ws_get_buffer,
@@ -336,11 +336,7 @@ class WebSocket extends EventTarget {
PromisePrototypeThen(
// deno-lint-ignore prefer-primordials
data.slice().arrayBuffer(),
- (ab) =>
- op_ws_send_binary(
- this[_rid],
- new DataView(ab),
- ),
+ (ab) => op_ws_send_binary_ab(this[_rid], ab),
);
} else {
const string = String(data);