mezon-js 2.10.9 → 2.10.10
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 +2 -2
- package/package.json +1 -1
- package/socket.ts +3 -6
package/dist/socket.d.ts
CHANGED
@@ -626,6 +626,7 @@ export interface JoinPTTChannel {
|
|
626
626
|
is_talk: boolean;
|
627
627
|
}
|
628
628
|
export interface TalkPTTChannel {
|
629
|
+
user_id: string;
|
629
630
|
channel_id: string;
|
630
631
|
}
|
631
632
|
/** PTT Joined event */
|
@@ -708,7 +709,6 @@ export interface Socket {
|
|
708
709
|
/** send voice leaved */
|
709
710
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
710
711
|
joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
711
|
-
talkPTTChannel(channelId: string): Promise<TalkPTTChannel>;
|
712
712
|
setHeartbeatTimeoutMs(ms: number): void;
|
713
713
|
getHeartbeatTimeoutMs(): number;
|
714
714
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
@@ -875,7 +875,7 @@ export declare class DefaultSocket implements Socket {
|
|
875
875
|
onjoinpttchannel(join_ptt_channel: JoinPTTChannel): void;
|
876
876
|
ontalkpttchannel(talk_ptt_channel: TalkPTTChannel): void;
|
877
877
|
onsdtopicevent(sd_topic_event: SdTopicEvent): void;
|
878
|
-
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping | WebrtcSignalingFwd | IncomingCallPush | MessageButtonClicked | DropdownBoxSelected | JoinPTTChannel
|
878
|
+
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping | WebrtcSignalingFwd | IncomingCallPush | MessageButtonClicked | DropdownBoxSelected | JoinPTTChannel, sendTimeout?: number): Promise<any>;
|
879
879
|
followUsers(userIds: string[]): Promise<Status>;
|
880
880
|
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
881
881
|
joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -880,6 +880,8 @@ export interface JoinPTTChannel {
|
|
880
880
|
}
|
881
881
|
|
882
882
|
export interface TalkPTTChannel {
|
883
|
+
// user id
|
884
|
+
user_id: string;
|
883
885
|
// channel id
|
884
886
|
channel_id: string;
|
885
887
|
}
|
@@ -1086,10 +1088,6 @@ export interface Socket {
|
|
1086
1088
|
jsonData: string
|
1087
1089
|
): Promise<JoinPTTChannel>;
|
1088
1090
|
|
1089
|
-
talkPTTChannel(
|
1090
|
-
channelId: string
|
1091
|
-
): Promise<TalkPTTChannel>;
|
1092
|
-
|
1093
1091
|
/* Set the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
|
1094
1092
|
setHeartbeatTimeoutMs(ms: number): void;
|
1095
1093
|
|
@@ -1962,8 +1960,7 @@ export class DefaultSocket implements Socket {
|
|
1962
1960
|
| IncomingCallPush
|
1963
1961
|
| MessageButtonClicked
|
1964
1962
|
| DropdownBoxSelected
|
1965
|
-
| JoinPTTChannel
|
1966
|
-
| TalkPTTChannel,
|
1963
|
+
| JoinPTTChannel,
|
1967
1964
|
sendTimeout = DefaultSocket.DefaultSendTimeoutMs
|
1968
1965
|
): Promise<any> {
|
1969
1966
|
const untypedMessage = message as any;
|