mezon-js 2.10.5 → 2.10.7
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 -5
- package/dist/mezon-js.esm.mjs +2 -5
- package/dist/socket.d.ts +2 -2
- package/package.json +1 -1
- package/socket.ts +3 -12
package/dist/mezon-js.cjs.js
CHANGED
@@ -7969,14 +7969,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7969
7969
|
return response.join_ptt_channel;
|
7970
7970
|
});
|
7971
7971
|
}
|
7972
|
-
talkPTTChannel(channelId
|
7972
|
+
talkPTTChannel(channelId) {
|
7973
7973
|
return __async(this, null, function* () {
|
7974
7974
|
const response = yield this.send({
|
7975
7975
|
talk_ptt_channel: {
|
7976
|
-
channel_id: channelId
|
7977
|
-
data_type: dataType,
|
7978
|
-
json_data: jsonData,
|
7979
|
-
state
|
7976
|
+
channel_id: channelId
|
7980
7977
|
}
|
7981
7978
|
});
|
7982
7979
|
return response.talk_ptt_channel;
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7935,14 +7935,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7935
7935
|
return response.join_ptt_channel;
|
7936
7936
|
});
|
7937
7937
|
}
|
7938
|
-
talkPTTChannel(channelId
|
7938
|
+
talkPTTChannel(channelId) {
|
7939
7939
|
return __async(this, null, function* () {
|
7940
7940
|
const response = yield this.send({
|
7941
7941
|
talk_ptt_channel: {
|
7942
|
-
channel_id: channelId
|
7943
|
-
data_type: dataType,
|
7944
|
-
json_data: jsonData,
|
7945
|
-
state
|
7942
|
+
channel_id: channelId
|
7946
7943
|
}
|
7947
7944
|
});
|
7948
7945
|
return response.talk_ptt_channel;
|
package/dist/socket.d.ts
CHANGED
@@ -711,7 +711,7 @@ export interface Socket {
|
|
711
711
|
/** send voice leaved */
|
712
712
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
713
713
|
joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
714
|
-
talkPTTChannel(channelId: string
|
714
|
+
talkPTTChannel(channelId: string): Promise<TalkPTTChannel>;
|
715
715
|
setHeartbeatTimeoutMs(ms: number): void;
|
716
716
|
getHeartbeatTimeoutMs(): number;
|
717
717
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
@@ -902,7 +902,7 @@ export declare class DefaultSocket implements Socket {
|
|
902
902
|
handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
|
903
903
|
handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string): Promise<MessageButtonClicked>;
|
904
904
|
joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
905
|
-
talkPTTChannel(channelId: string
|
905
|
+
talkPTTChannel(channelId: string): Promise<TalkPTTChannel>;
|
906
906
|
private pingPong;
|
907
907
|
}
|
908
908
|
export {};
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -1093,10 +1093,7 @@ export interface Socket {
|
|
1093
1093
|
): Promise<JoinPTTChannel>;
|
1094
1094
|
|
1095
1095
|
talkPTTChannel(
|
1096
|
-
channelId: string
|
1097
|
-
dataType: number,
|
1098
|
-
jsonData: string,
|
1099
|
-
state: number
|
1096
|
+
channelId: string
|
1100
1097
|
): Promise<TalkPTTChannel>;
|
1101
1098
|
|
1102
1099
|
/* Set the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
|
@@ -2405,17 +2402,11 @@ export class DefaultSocket implements Socket {
|
|
2405
2402
|
}
|
2406
2403
|
|
2407
2404
|
async talkPTTChannel(
|
2408
|
-
channelId: string
|
2409
|
-
dataType: number,
|
2410
|
-
jsonData: string,
|
2411
|
-
state: number
|
2405
|
+
channelId: string
|
2412
2406
|
): Promise<TalkPTTChannel> {
|
2413
2407
|
const response = await this.send({
|
2414
2408
|
talk_ptt_channel: {
|
2415
|
-
channel_id: channelId
|
2416
|
-
data_type: dataType,
|
2417
|
-
json_data: jsonData,
|
2418
|
-
state: state,
|
2409
|
+
channel_id: channelId
|
2419
2410
|
},
|
2420
2411
|
});
|
2421
2412
|
return response.talk_ptt_channel;
|