From 6d47b7bd0317207c7516f9770a04963459b39545 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 1 Jun 2024 22:13:53 +0800 Subject: [PATCH] chore: useMsgpack -> disableMsgpack --- client/packages/tailchat-client-sdk/src/openapi/client/ws.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/packages/tailchat-client-sdk/src/openapi/client/ws.ts b/client/packages/tailchat-client-sdk/src/openapi/client/ws.ts index 236b701e..2515597c 100644 --- a/client/packages/tailchat-client-sdk/src/openapi/client/ws.ts +++ b/client/packages/tailchat-client-sdk/src/openapi/client/ws.ts @@ -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); } @@ -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', () => {