Skip to content

Commit

Permalink
chore: useMsgpack -> disableMsgpack
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjackyuanjie authored and moonrailgun committed Jun 2, 2024
1 parent a4180ae commit 6d47b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/packages/tailchat-client-sdk/src/openapi/client/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class TailchatWsClient extends TailchatBaseClient {
public url: string,
public appId: string,
public appSecret: string,
public useMsgpack: boolean = true
public disableMsgpack: boolean = false
) {
super(url, appId, appSecret);
}
Expand All @@ -26,7 +26,7 @@ export class TailchatWsClient extends TailchatBaseClient {
token,
},
forceNew: true,
parser: this.useMsgpack ? msgpackParser : undefined,
parser: this.disableMsgpack ? undefined : msgpackParser,
}));

socket.once('connect', () => {
Expand Down

0 comments on commit 6d47b7b

Please sign in to comment.