|
|
@ -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', () => {
|
|
|
|