mezon-js 2.10.13 → 2.10.15
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/mezon-js.cjs.js +3 -2
- package/dist/mezon-js.esm.mjs +3 -2
- package/dist/socket.d.ts +2 -2
- package/package.json +1 -1
- package/socket.ts +6 -3
package/dist/mezon-js.cjs.js
CHANGED
@@ -7969,11 +7969,12 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7969
7969
|
return response.join_ptt_channel;
|
7970
7970
|
});
|
7971
7971
|
}
|
7972
|
-
talkPTTChannel(channelId) {
|
7972
|
+
talkPTTChannel(channelId, isTalk) {
|
7973
7973
|
return __async(this, null, function* () {
|
7974
7974
|
const response = yield this.send({
|
7975
7975
|
talk_ptt_channel: {
|
7976
|
-
channel_id: channelId
|
7976
|
+
channel_id: channelId,
|
7977
|
+
isTalk
|
7977
7978
|
}
|
7978
7979
|
});
|
7979
7980
|
return response.talk_ptt_channel;
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7935,11 +7935,12 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7935
7935
|
return response.join_ptt_channel;
|
7936
7936
|
});
|
7937
7937
|
}
|
7938
|
-
talkPTTChannel(channelId) {
|
7938
|
+
talkPTTChannel(channelId, isTalk) {
|
7939
7939
|
return __async(this, null, function* () {
|
7940
7940
|
const response = yield this.send({
|
7941
7941
|
talk_ptt_channel: {
|
7942
|
-
channel_id: channelId
|
7942
|
+
channel_id: channelId,
|
7943
|
+
isTalk
|
7943
7944
|
}
|
7944
7945
|
});
|
7945
7946
|
return response.talk_ptt_channel;
|
package/dist/socket.d.ts
CHANGED
@@ -709,7 +709,7 @@ export interface Socket {
|
|
709
709
|
/** send voice leaved */
|
710
710
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
711
711
|
joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
712
|
-
talkPTTChannel(channelId: string): Promise<TalkPTTChannel>;
|
712
|
+
talkPTTChannel(channelId: string, isTalk: boolean): Promise<TalkPTTChannel>;
|
713
713
|
setHeartbeatTimeoutMs(ms: number): void;
|
714
714
|
getHeartbeatTimeoutMs(): number;
|
715
715
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
@@ -900,7 +900,7 @@ export declare class DefaultSocket implements Socket {
|
|
900
900
|
handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
|
901
901
|
handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string): Promise<MessageButtonClicked>;
|
902
902
|
joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
903
|
-
talkPTTChannel(channelId: string): Promise<TalkPTTChannel>;
|
903
|
+
talkPTTChannel(channelId: string, isTalk: boolean): Promise<TalkPTTChannel>;
|
904
904
|
private pingPong;
|
905
905
|
}
|
906
906
|
export {};
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -1089,7 +1089,8 @@ export interface Socket {
|
|
1089
1089
|
): Promise<JoinPTTChannel>;
|
1090
1090
|
|
1091
1091
|
talkPTTChannel(
|
1092
|
-
channelId: string
|
1092
|
+
channelId: string,
|
1093
|
+
isTalk: boolean
|
1093
1094
|
): Promise<TalkPTTChannel>;
|
1094
1095
|
|
1095
1096
|
/* Set the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
|
@@ -2398,11 +2399,13 @@ export class DefaultSocket implements Socket {
|
|
2398
2399
|
}
|
2399
2400
|
|
2400
2401
|
async talkPTTChannel(
|
2401
|
-
channelId: string
|
2402
|
+
channelId: string,
|
2403
|
+
isTalk: boolean
|
2402
2404
|
): Promise<TalkPTTChannel> {
|
2403
2405
|
const response = await this.send({
|
2404
2406
|
talk_ptt_channel: {
|
2405
|
-
channel_id: channelId
|
2407
|
+
channel_id: channelId,
|
2408
|
+
isTalk
|
2406
2409
|
},
|
2407
2410
|
});
|
2408
2411
|
return response.talk_ptt_channel;
|