mezon-js 2.10.26 → 2.10.28
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 -4
- package/dist/mezon-js.esm.mjs +3 -4
- package/dist/socket.d.ts +3 -3
- package/package.json +1 -1
- package/socket.ts +4 -5
package/dist/mezon-js.cjs.js
CHANGED
@@ -7969,18 +7969,17 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7969
7969
|
clan_id: clanId,
|
7970
7970
|
channel_id: channelId,
|
7971
7971
|
data_type: dataType,
|
7972
|
-
json_data: jsonData
|
7973
|
-
receiver_id: ""
|
7972
|
+
json_data: jsonData
|
7974
7973
|
}
|
7975
7974
|
});
|
7976
7975
|
return response.join_ptt_channel;
|
7977
7976
|
});
|
7978
7977
|
}
|
7979
|
-
talkPTTChannel(
|
7978
|
+
talkPTTChannel(clanId, channelId, isTalk) {
|
7980
7979
|
return __async(this, null, function* () {
|
7981
7980
|
const response = yield this.send({
|
7982
7981
|
talk_ptt_channel: {
|
7983
|
-
clan_id,
|
7982
|
+
clan_id: clanId,
|
7984
7983
|
channel_id: channelId,
|
7985
7984
|
isTalk
|
7986
7985
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7935,18 +7935,17 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7935
7935
|
clan_id: clanId,
|
7936
7936
|
channel_id: channelId,
|
7937
7937
|
data_type: dataType,
|
7938
|
-
json_data: jsonData
|
7939
|
-
receiver_id: ""
|
7938
|
+
json_data: jsonData
|
7940
7939
|
}
|
7941
7940
|
});
|
7942
7941
|
return response.join_ptt_channel;
|
7943
7942
|
});
|
7944
7943
|
}
|
7945
|
-
talkPTTChannel(
|
7944
|
+
talkPTTChannel(clanId, channelId, isTalk) {
|
7946
7945
|
return __async(this, null, function* () {
|
7947
7946
|
const response = yield this.send({
|
7948
7947
|
talk_ptt_channel: {
|
7949
|
-
clan_id,
|
7948
|
+
clan_id: clanId,
|
7950
7949
|
channel_id: channelId,
|
7951
7950
|
isTalk
|
7952
7951
|
}
|
package/dist/socket.d.ts
CHANGED
@@ -627,7 +627,7 @@ export interface JoinPTTChannel {
|
|
627
627
|
/** offer */
|
628
628
|
json_data: string;
|
629
629
|
/** receiver id */
|
630
|
-
|
630
|
+
user_id: string;
|
631
631
|
/** clan id */
|
632
632
|
clan_id: string;
|
633
633
|
/** is talk */
|
@@ -719,7 +719,7 @@ export interface Socket {
|
|
719
719
|
/** send voice leaved */
|
720
720
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
721
721
|
joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
722
|
-
talkPTTChannel(
|
722
|
+
talkPTTChannel(clanId: string, channelId: string, isTalk: boolean): Promise<TalkPTTChannel>;
|
723
723
|
setHeartbeatTimeoutMs(ms: number): void;
|
724
724
|
getHeartbeatTimeoutMs(): number;
|
725
725
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
@@ -910,7 +910,7 @@ export declare class DefaultSocket implements Socket {
|
|
910
910
|
handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
|
911
911
|
handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string): Promise<MessageButtonClicked>;
|
912
912
|
joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
913
|
-
talkPTTChannel(
|
913
|
+
talkPTTChannel(clanId: string, channelId: string, isTalk: boolean): Promise<TalkPTTChannel>;
|
914
914
|
private pingPong;
|
915
915
|
}
|
916
916
|
export {};
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -879,7 +879,7 @@ export interface JoinPTTChannel {
|
|
879
879
|
/** offer */
|
880
880
|
json_data: string;
|
881
881
|
/** receiver id */
|
882
|
-
|
882
|
+
user_id: string;
|
883
883
|
/** clan id */
|
884
884
|
clan_id: string;
|
885
885
|
/** is talk */
|
@@ -1102,7 +1102,7 @@ export interface Socket {
|
|
1102
1102
|
): Promise<JoinPTTChannel>;
|
1103
1103
|
|
1104
1104
|
talkPTTChannel(
|
1105
|
-
|
1105
|
+
clanId: string,
|
1106
1106
|
channelId: string,
|
1107
1107
|
isTalk: boolean
|
1108
1108
|
): Promise<TalkPTTChannel>;
|
@@ -2411,20 +2411,19 @@ export class DefaultSocket implements Socket {
|
|
2411
2411
|
channel_id: channelId,
|
2412
2412
|
data_type: dataType,
|
2413
2413
|
json_data: jsonData,
|
2414
|
-
receiver_id: "",
|
2415
2414
|
},
|
2416
2415
|
});
|
2417
2416
|
return response.join_ptt_channel;
|
2418
2417
|
}
|
2419
2418
|
|
2420
2419
|
async talkPTTChannel(
|
2421
|
-
|
2420
|
+
clanId: string,
|
2422
2421
|
channelId: string,
|
2423
2422
|
isTalk: boolean
|
2424
2423
|
): Promise<TalkPTTChannel> {
|
2425
2424
|
const response = await this.send({
|
2426
2425
|
talk_ptt_channel: {
|
2427
|
-
clan_id:
|
2426
|
+
clan_id: clanId,
|
2428
2427
|
channel_id: channelId,
|
2429
2428
|
isTalk
|
2430
2429
|
},
|