diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-02-06 18:07:20 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 13:37:20 +0100 |
commit | e568cb8bf85161ea850ca2ae3b11247a0d5dcabd (patch) | |
tree | 54a8077ef0f574e0f1afe2c7129289e4204a2be5 /ext/websocket/lib.rs | |
parent | 428266c06a192f008a5429e871f783dfb4601f93 (diff) |
chore(ws): remove unused op_ws_send_pong (#22283)
Diffstat (limited to 'ext/websocket/lib.rs')
-rw-r--r-- | ext/websocket/lib.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs index 9b02d0759..e6f382c34 100644 --- a/ext/websocket/lib.rs +++ b/ext/websocket/lib.rs @@ -660,21 +660,6 @@ pub fn op_ws_get_buffered_amount( } #[op2(async)] -pub async fn op_ws_send_pong( - state: Rc<RefCell<OpState>>, - #[smi] rid: ResourceId, -) -> Result<(), AnyError> { - let resource = state - .borrow_mut() - .resource_table - .get::<ServerWebSocket>(rid)?; - let lock = resource.reserve_lock(); - resource - .write_frame(lock, Frame::pong(EMPTY_PAYLOAD.into())) - .await -} - -#[op2(async)] pub async fn op_ws_send_ping( state: Rc<RefCell<OpState>>, #[smi] rid: ResourceId, @@ -839,7 +824,6 @@ deno_core::extension!(deno_websocket, op_ws_send_binary_async, op_ws_send_text_async, op_ws_send_ping, - op_ws_send_pong, op_ws_get_buffered_amount, ], esm = [ "01_websocket.js", "02_websocketstream.js" ], |