chore: useMsgpack -> disableMsgpack

pull/249/head
shenjack 11 months ago committed by moonrailgun
parent a4180ae29c
commit 6d47b7bd03

@ -10,7 +10,7 @@ export class TailchatWsClient extends TailchatBaseClient {
public url: string, public url: string,
public appId: string, public appId: string,
public appSecret: string, public appSecret: string,
public useMsgpack: boolean = true public disableMsgpack: boolean = false
) { ) {
super(url, appId, appSecret); super(url, appId, appSecret);
} }
@ -26,7 +26,7 @@ export class TailchatWsClient extends TailchatBaseClient {
token, token,
}, },
forceNew: true, forceNew: true,
parser: this.useMsgpack ? msgpackParser : undefined, parser: this.disableMsgpack ? undefined : msgpackParser,
})); }));
socket.once('connect', () => { socket.once('connect', () => {

Loading…
Cancel
Save