mezon-js 2.10.11 → 2.10.13

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 CHANGED
@@ -709,6 +709,7 @@ export interface Socket {
709
709
  /** send voice leaved */
710
710
  writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
711
711
  joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
712
+ talkPTTChannel(channelId: string): Promise<TalkPTTChannel>;
712
713
  setHeartbeatTimeoutMs(ms: number): void;
713
714
  getHeartbeatTimeoutMs(): number;
714
715
  checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
@@ -875,7 +876,7 @@ export declare class DefaultSocket implements Socket {
875
876
  onjoinpttchannel(join_ptt_channel: JoinPTTChannel): void;
876
877
  ontalkpttchannel(talk_ptt_channel: TalkPTTChannel): void;
877
878
  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, sendTimeout?: number): Promise<any>;
879
+ send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping | WebrtcSignalingFwd | IncomingCallPush | MessageButtonClicked | DropdownBoxSelected | JoinPTTChannel | TalkPTTChannel, sendTimeout?: number): Promise<any>;
879
880
  followUsers(userIds: string[]): Promise<Status>;
880
881
  joinClanChat(clan_id: string): Promise<ClanJoin>;
881
882
  joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.11",
4
+ "version": "2.10.13",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -1088,6 +1088,10 @@ export interface Socket {
1088
1088
  jsonData: string
1089
1089
  ): Promise<JoinPTTChannel>;
1090
1090
 
1091
+ talkPTTChannel(
1092
+ channelId: string
1093
+ ): Promise<TalkPTTChannel>;
1094
+
1091
1095
  /* Set the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
1092
1096
  setHeartbeatTimeoutMs(ms: number): void;
1093
1097
 
@@ -1960,7 +1964,8 @@ export class DefaultSocket implements Socket {
1960
1964
  | IncomingCallPush
1961
1965
  | MessageButtonClicked
1962
1966
  | DropdownBoxSelected
1963
- | JoinPTTChannel,
1967
+ | JoinPTTChannel
1968
+ | TalkPTTChannel,
1964
1969
  sendTimeout = DefaultSocket.DefaultSendTimeoutMs
1965
1970
  ): Promise<any> {
1966
1971
  const untypedMessage = message as any;