summary refs log tree commit diff
path: root/src/gateway/opcodes/StreamDelete.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/gateway/opcodes/StreamDelete.ts')
-rw-r--r--src/gateway/opcodes/StreamDelete.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/opcodes/StreamDelete.ts b/src/gateway/opcodes/StreamDelete.ts

index 82d09538..773b6508 100644 --- a/src/gateway/opcodes/StreamDelete.ts +++ b/src/gateway/opcodes/StreamDelete.ts
@@ -37,7 +37,7 @@ export async function onStreamDelete(this: WebSocket, data: Payload) { try { parsedKey = parseStreamKey(body.stream_key); } catch (e) { - return this.close(4000, "Invalid stream key"); + return this.rawSocket.close(4000, "Invalid stream key"); } // noinspection JSUnusedLocalSymbols - TODO: what is type here?