mezon-js 2.15.66 → 2.15.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +3 -0
- package/dist/mezon-js.cjs.js +1 -1
- package/dist/mezon-js.esm.mjs +1 -1
- package/dist/mezon-js.iife.js +1 -1
- package/dist/mezon-js.umd.js +1 -1
- package/dist/mezon-js.umd.js.map +1 -1
- package/dist/transport.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -33,10 +33,12 @@ export declare class Client {
|
|
|
33
33
|
readonly serverkey: string;
|
|
34
34
|
readonly timeout: number;
|
|
35
35
|
readonly autoFallbackHttp: boolean;
|
|
36
|
+
static readonly DefaultHeartbeatIntervalMs = 10000;
|
|
36
37
|
static readonly DefaultHeartbeatTimeoutMs = 10000;
|
|
37
38
|
static readonly DefaultConnectTimeoutMs = 30000;
|
|
38
39
|
static readonly DefaultServerDisconnectStreakLogoutThreshold = 3;
|
|
39
40
|
verbose: boolean;
|
|
41
|
+
private _heartbeatIntervalMs;
|
|
40
42
|
private _heartbeatTimeoutMs;
|
|
41
43
|
private _connectionState;
|
|
42
44
|
private _heartbeatTimer?;
|
|
@@ -445,6 +447,7 @@ export declare class Client {
|
|
|
445
447
|
reportMessageAbuse(session: ApiSession, messageId?: string, abuseType?: string): Promise<any>;
|
|
446
448
|
updateMezonVoiceState(session: ApiSession, clanId?: string, channelId?: string, displayName?: string, roomName?: string, state?: number): Promise<any>;
|
|
447
449
|
sendChannelMessage(session: ApiSession, clanId: string, channelId: string, mode: number, isPublic: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymousMessage?: boolean, mentionEveryone?: boolean, avatar?: string, code?: number, topicId?: string): Promise<ChannelMessageAck>;
|
|
450
|
+
sendChannelMessageApi(session: ApiSession, clanId: string, channelId: string, mode: number, isPublic: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymousMessage?: boolean, mentionEveryone?: boolean, avatar?: string, code?: number, topicId?: string): Promise<ChannelMessageAck>;
|
|
448
451
|
updateChannelMessage(session: ApiSession, clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, createTimeSeconds?: number, hideEditted?: boolean, topicId?: string, isUpdateMsgTopic?: boolean): Promise<any>;
|
|
449
452
|
deleteChannelMessage(session: ApiSession, clanId: string, channelId: string, mode: number, isPublic: boolean, messageId: string, hasAttachment?: boolean, topicId?: string, mentions?: Uint8Array, references?: Uint8Array): Promise<any>;
|
|
450
453
|
messageButtonClick(session: ApiSession, messageId?: string, channelId?: string, buttonId?: string, senderId?: string, userId?: string, extraData?: string): Promise<any>;
|