From cfc05e027ef468862b137a0c1c3fdb85c90e1043 Mon Sep 17 00:00:00 2001 From: simon3000 Date: Wed, 13 Sep 2023 22:57:32 +0200 Subject: [PATCH] default protover = 3 --- src/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.ts b/src/common.ts index 6494702..1c1b9f1 100644 --- a/src/common.ts +++ b/src/common.ts @@ -26,7 +26,7 @@ export class Live extends NiceEventEmitter { send: (data: Buffer) => void close: () => void - constructor(inflates: Inflates, roomid: number, { send, close, protover = 2, key, authBody, uid = 0, buvid }: { send: (data: Buffer) => void, close: () => void } & LiveOptions) { + constructor(inflates: Inflates, roomid: number, { send, close, protover = 3, key, authBody, uid = 0, buvid }: { send: (data: Buffer) => void, close: () => void } & LiveOptions) { if (typeof roomid !== 'number' || Number.isNaN(roomid)) { throw new Error(`roomid ${roomid} must be Number not NaN`) }