fix: rename all disableSocketMsgpack to disableMsgpack

pull/249/head
shenjack 1 year ago committed by moonrailgun
parent 6d47b7bd03
commit 7870c835d7

@ -208,14 +208,14 @@ export function createSocket(token: string): Promise<AppSocket> {
}
return new Promise((resolve, reject) => {
const disableSocketMsgpack = getGlobalConfig().disableSocketMsgpack;
const disableMsgpack = getGlobalConfig().disableMsgpack;
_socket = io(getServiceUrl(), {
transports: ['websocket'],
auth: {
token,
},
forceNew: true,
parser: disableSocketMsgpack ? undefined : msgpackParser,
parser: disableMsgpack ? undefined : msgpackParser,
});
_socket.once('connect', () => {
// 连接成功

@ -37,7 +37,7 @@ export interface GlobalConfig {
/**
* Socketio Msgpack
*/
disableSocketMsgpack?: boolean;
disableMsgpack?: boolean;
/**
*

@ -23,7 +23,7 @@ export const defaultGlobalConfig: GlobalConfig = {
uploadFileLimit: 1 * 1024 * 1024,
emailVerification: false,
serverName: 'Tailchat',
disableSocketMsgpack: false,
disableMsgpack: false,
disableUserRegister: false,
disableGuestLogin: false,
disableCreateGroup: false,

Loading…
Cancel
Save