mezon-js 2.9.75 → 2.9.76
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +3 -2
- package/package.json +1 -1
- package/socket.ts +5 -3
package/dist/mezon-js.cjs.js
CHANGED
@@ -7358,10 +7358,10 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7358
7358
|
return response.check_name_existed_event;
|
7359
7359
|
});
|
7360
7360
|
}
|
7361
|
-
forwardWebrtcSignaling(receiver_id, data_type, json_data) {
|
7361
|
+
forwardWebrtcSignaling(receiver_id, data_type, json_data, channel_id) {
|
7362
7362
|
return __async(this, null, function* () {
|
7363
7363
|
const response = yield this.send({
|
7364
|
-
webrtc_signaling_fwd: { receiver_id, data_type, json_data }
|
7364
|
+
webrtc_signaling_fwd: { receiver_id, data_type, json_data, channel_id }
|
7365
7365
|
});
|
7366
7366
|
return response.webrtc_signaling_fwd;
|
7367
7367
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7328,10 +7328,10 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7328
7328
|
return response.check_name_existed_event;
|
7329
7329
|
});
|
7330
7330
|
}
|
7331
|
-
forwardWebrtcSignaling(receiver_id, data_type, json_data) {
|
7331
|
+
forwardWebrtcSignaling(receiver_id, data_type, json_data, channel_id) {
|
7332
7332
|
return __async(this, null, function* () {
|
7333
7333
|
const response = yield this.send({
|
7334
|
-
webrtc_signaling_fwd: { receiver_id, data_type, json_data }
|
7334
|
+
webrtc_signaling_fwd: { receiver_id, data_type, json_data, channel_id }
|
7335
7335
|
});
|
7336
7336
|
return response.webrtc_signaling_fwd;
|
7337
7337
|
});
|
package/dist/socket.d.ts
CHANGED
@@ -588,6 +588,7 @@ export interface WebrtcSignalingFwd {
|
|
588
588
|
receiver_id: string;
|
589
589
|
data_type: number;
|
590
590
|
json_data: string;
|
591
|
+
channel_id: string;
|
591
592
|
}
|
592
593
|
export interface JoinPTTChannel {
|
593
594
|
channel_id: string;
|
@@ -707,7 +708,7 @@ export interface Socket {
|
|
707
708
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
708
709
|
handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string) => Promise<MessageButtonClicked>;
|
709
710
|
onmessagebuttonclicked: (event: MessageButtonClicked) => void;
|
710
|
-
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string) => Promise<WebrtcSignalingFwd>;
|
711
|
+
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string) => Promise<WebrtcSignalingFwd>;
|
711
712
|
onwebrtcsignalingfwd: (event: WebrtcSignalingFwd) => void;
|
712
713
|
oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;
|
713
714
|
oncoffeegiven: (give_coffee_event: ApiGiveCoffeeEvent) => void;
|
@@ -818,7 +819,7 @@ export declare class DefaultSocket implements Socket {
|
|
818
819
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
819
820
|
writeCustomStatus(clan_id: string, status: string): Promise<CustomStatusEvent>;
|
820
821
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
821
|
-
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string): Promise<WebrtcSignalingFwd>;
|
822
|
+
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string): Promise<WebrtcSignalingFwd>;
|
822
823
|
handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string): Promise<MessageButtonClicked>;
|
823
824
|
joinPTTChannel(channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
824
825
|
talkPTTChannel(channelId: string, dataType: number, jsonData: string, state: number): Promise<TalkPTTChannel>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -832,6 +832,7 @@ export interface WebrtcSignalingFwd {
|
|
832
832
|
receiver_id: string;
|
833
833
|
data_type: number;
|
834
834
|
json_data: string;
|
835
|
+
channel_id: string;
|
835
836
|
}
|
836
837
|
|
837
838
|
export interface JoinPTTChannel {
|
@@ -1146,7 +1147,7 @@ export interface Socket {
|
|
1146
1147
|
|
1147
1148
|
onmessagebuttonclicked: (event: MessageButtonClicked) => void;
|
1148
1149
|
|
1149
|
-
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string) => Promise<WebrtcSignalingFwd>;
|
1150
|
+
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string) => Promise<WebrtcSignalingFwd>;
|
1150
1151
|
|
1151
1152
|
onwebrtcsignalingfwd: (event: WebrtcSignalingFwd) => void;
|
1152
1153
|
|
@@ -2143,9 +2144,10 @@ export class DefaultSocket implements Socket {
|
|
2143
2144
|
async forwardWebrtcSignaling(
|
2144
2145
|
receiver_id: string,
|
2145
2146
|
data_type: number,
|
2146
|
-
json_data: string
|
2147
|
+
json_data: string,
|
2148
|
+
channel_id: string): Promise<WebrtcSignalingFwd> {
|
2147
2149
|
const response = await this.send({
|
2148
|
-
webrtc_signaling_fwd: { receiver_id: receiver_id, data_type: data_type, json_data: json_data },
|
2150
|
+
webrtc_signaling_fwd: { receiver_id: receiver_id, data_type: data_type, json_data: json_data, channel_id: channel_id },
|
2149
2151
|
});
|
2150
2152
|
return response.webrtc_signaling_fwd;
|
2151
2153
|
}
|