Skip to content

Commit

Permalink
chore: improve default options
Browse files Browse the repository at this point in the history
  • Loading branch information
starknt committed Aug 21, 2024
1 parent c9438e5 commit a1bc415
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/base/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export const DEFAULT_WS_OPTIONS: Options = {
keepalive: true,
reconnectTime: 5 * 1000,
heartbeatTime: 30 * 1000,
// platform: 'web',
// protover: 3,
platform: 'web',
protover: 3,
type: 2,
}

Expand Down Expand Up @@ -181,7 +181,7 @@ export interface WSOptions extends BaseOptions, AuthOptions, ConnectionOptions {
export interface TCPOptions extends WSOptions {}

export interface LiveHelloMessage {
platform?: 'web' | string
platform?: 'web' | 'android' | string
protover?: 1 | 2 | 3
roomid: number
uid?: number
Expand Down

0 comments on commit a1bc415

Please sign in to comment.