mezon-js 2.10.6 → 2.10.8
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/socket.d.ts +1 -4
- package/package.json +1 -1
- package/socket.ts +1 -10
package/dist/socket.d.ts
CHANGED
@@ -627,9 +627,6 @@ export interface JoinPTTChannel {
|
|
627
627
|
}
|
628
628
|
export interface TalkPTTChannel {
|
629
629
|
channel_id: string;
|
630
|
-
data_type: number;
|
631
|
-
json_data: string;
|
632
|
-
state: number;
|
633
630
|
}
|
634
631
|
/** PTT Joined event */
|
635
632
|
export interface PTTLeavedEvent {
|
@@ -711,7 +708,7 @@ export interface Socket {
|
|
711
708
|
/** send voice leaved */
|
712
709
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
713
710
|
joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
714
|
-
talkPTTChannel(channelId: string
|
711
|
+
talkPTTChannel(channelId: string): Promise<TalkPTTChannel>;
|
715
712
|
setHeartbeatTimeoutMs(ms: number): void;
|
716
713
|
getHeartbeatTimeoutMs(): number;
|
717
714
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -882,12 +882,6 @@ export interface JoinPTTChannel {
|
|
882
882
|
export interface TalkPTTChannel {
|
883
883
|
// channel id
|
884
884
|
channel_id: string;
|
885
|
-
// type offer, answer or candidate
|
886
|
-
data_type: number;
|
887
|
-
// offer
|
888
|
-
json_data: string;
|
889
|
-
// start or end
|
890
|
-
state: number;
|
891
885
|
}
|
892
886
|
|
893
887
|
/** PTT Joined event */
|
@@ -1093,10 +1087,7 @@ export interface Socket {
|
|
1093
1087
|
): Promise<JoinPTTChannel>;
|
1094
1088
|
|
1095
1089
|
talkPTTChannel(
|
1096
|
-
channelId: string
|
1097
|
-
dataType: number,
|
1098
|
-
jsonData: string,
|
1099
|
-
state: number
|
1090
|
+
channelId: string
|
1100
1091
|
): Promise<TalkPTTChannel>;
|
1101
1092
|
|
1102
1093
|
/* Set the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
|