mezon-js 2.10.24 → 2.10.26
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 +2 -1
- package/dist/mezon-js.esm.mjs +2 -1
- package/dist/socket.d.ts +4 -2
- package/package.json +1 -1
- package/socket.ts +7 -0
package/dist/mezon-js.cjs.js
CHANGED
@@ -7976,10 +7976,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7976
7976
|
return response.join_ptt_channel;
|
7977
7977
|
});
|
7978
7978
|
}
|
7979
|
-
talkPTTChannel(channelId, isTalk) {
|
7979
|
+
talkPTTChannel(clan_id, channelId, isTalk) {
|
7980
7980
|
return __async(this, null, function* () {
|
7981
7981
|
const response = yield this.send({
|
7982
7982
|
talk_ptt_channel: {
|
7983
|
+
clan_id,
|
7983
7984
|
channel_id: channelId,
|
7984
7985
|
isTalk
|
7985
7986
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7942,10 +7942,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7942
7942
|
return response.join_ptt_channel;
|
7943
7943
|
});
|
7944
7944
|
}
|
7945
|
-
talkPTTChannel(channelId, isTalk) {
|
7945
|
+
talkPTTChannel(clan_id, channelId, isTalk) {
|
7946
7946
|
return __async(this, null, function* () {
|
7947
7947
|
const response = yield this.send({
|
7948
7948
|
talk_ptt_channel: {
|
7949
|
+
clan_id,
|
7949
7950
|
channel_id: channelId,
|
7950
7951
|
isTalk
|
7951
7952
|
}
|
package/dist/socket.d.ts
CHANGED
@@ -636,6 +636,8 @@ export interface JoinPTTChannel {
|
|
636
636
|
export interface TalkPTTChannel {
|
637
637
|
user_id: string;
|
638
638
|
channel_id: string;
|
639
|
+
clan_id: string;
|
640
|
+
is_talk: boolean;
|
639
641
|
}
|
640
642
|
/** PTT Joined event */
|
641
643
|
export interface PTTLeavedEvent {
|
@@ -717,7 +719,7 @@ export interface Socket {
|
|
717
719
|
/** send voice leaved */
|
718
720
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
719
721
|
joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
720
|
-
talkPTTChannel(channelId: string, isTalk: boolean): Promise<TalkPTTChannel>;
|
722
|
+
talkPTTChannel(clan_id: string, channelId: string, isTalk: boolean): Promise<TalkPTTChannel>;
|
721
723
|
setHeartbeatTimeoutMs(ms: number): void;
|
722
724
|
getHeartbeatTimeoutMs(): number;
|
723
725
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
@@ -908,7 +910,7 @@ export declare class DefaultSocket implements Socket {
|
|
908
910
|
handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
|
909
911
|
handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string): Promise<MessageButtonClicked>;
|
910
912
|
joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
911
|
-
talkPTTChannel(channelId: string, isTalk: boolean): Promise<TalkPTTChannel>;
|
913
|
+
talkPTTChannel(clan_id: string, channelId: string, isTalk: boolean): Promise<TalkPTTChannel>;
|
912
914
|
private pingPong;
|
913
915
|
}
|
914
916
|
export {};
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -891,6 +891,10 @@ export interface TalkPTTChannel {
|
|
891
891
|
user_id: string;
|
892
892
|
// channel id
|
893
893
|
channel_id: string;
|
894
|
+
// clan id
|
895
|
+
clan_id: string;
|
896
|
+
// is talk
|
897
|
+
is_talk: boolean;
|
894
898
|
}
|
895
899
|
|
896
900
|
/** PTT Joined event */
|
@@ -1098,6 +1102,7 @@ export interface Socket {
|
|
1098
1102
|
): Promise<JoinPTTChannel>;
|
1099
1103
|
|
1100
1104
|
talkPTTChannel(
|
1105
|
+
clan_id: string,
|
1101
1106
|
channelId: string,
|
1102
1107
|
isTalk: boolean
|
1103
1108
|
): Promise<TalkPTTChannel>;
|
@@ -2413,11 +2418,13 @@ export class DefaultSocket implements Socket {
|
|
2413
2418
|
}
|
2414
2419
|
|
2415
2420
|
async talkPTTChannel(
|
2421
|
+
clan_id: string,
|
2416
2422
|
channelId: string,
|
2417
2423
|
isTalk: boolean
|
2418
2424
|
): Promise<TalkPTTChannel> {
|
2419
2425
|
const response = await this.send({
|
2420
2426
|
talk_ptt_channel: {
|
2427
|
+
clan_id: clan_id,
|
2421
2428
|
channel_id: channelId,
|
2422
2429
|
isTalk
|
2423
2430
|
},
|