Skip to content

Commit

Permalink
default protover = 3
Browse files Browse the repository at this point in the history
  • Loading branch information
simon300000 committed Sep 13, 2023
1 parent 05f5f99 commit cfc05e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
}
Expand Down

0 comments on commit cfc05e0

Please sign in to comment.