mezon-js 2.10.59 → 2.10.61
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 +22 -27
- package/dist/mezon-js.esm.mjs +22 -27
- package/dist/socket.d.ts +5 -50
- package/package.json +1 -1
- package/socket.ts +38 -87
package/dist/mezon-js.cjs.js
CHANGED
@@ -7350,16 +7350,12 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7350
7350
|
this.onwebrtcsignalingfwd(
|
7351
7351
|
message.webrtc_signaling_fwd
|
7352
7352
|
);
|
7353
|
+
} else if (message.sfu_signaling_fwd) {
|
7354
|
+
this.onsfusignalingfwd(
|
7355
|
+
message.sfu_signaling_fwd
|
7356
|
+
);
|
7353
7357
|
} else if (message.list_activity) {
|
7354
7358
|
this.onactivityupdated(message.list_activity);
|
7355
|
-
} else if (message.join_ptt_channel) {
|
7356
|
-
this.onjoinpttchannel(message.join_ptt_channel);
|
7357
|
-
} else if (message.talk_ptt_channel) {
|
7358
|
-
this.ontalkpttchannel(message.talk_ptt_channel);
|
7359
|
-
} else if (message.ptt_joined_event) {
|
7360
|
-
this.onpttchanneljoined(message.ptt_joined_event);
|
7361
|
-
} else if (message.ptt_leaved_event) {
|
7362
|
-
this.onpttchannelleaved(message.ptt_leaved_event);
|
7363
7359
|
} else if (message.sd_topic_event) {
|
7364
7360
|
this.onsdtopicevent(message.sd_topic_event);
|
7365
7361
|
} else if (message.channel_app_event) {
|
@@ -7623,16 +7619,6 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7623
7619
|
console.log(streaming_leaved_event);
|
7624
7620
|
}
|
7625
7621
|
}
|
7626
|
-
onpttchanneljoined(ptt_joined_event) {
|
7627
|
-
if (this.verbose && window && window.console) {
|
7628
|
-
console.log(ptt_joined_event);
|
7629
|
-
}
|
7630
|
-
}
|
7631
|
-
onpttchannelleaved(ptt_leaved_event) {
|
7632
|
-
if (this.verbose && window && window.console) {
|
7633
|
-
console.log(ptt_leaved_event);
|
7634
|
-
}
|
7635
|
-
}
|
7636
7622
|
onpermissionset(permission_set_event) {
|
7637
7623
|
if (this.verbose && window && window.console) {
|
7638
7624
|
console.log(permission_set_event);
|
@@ -7668,19 +7654,14 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7668
7654
|
console.log(event);
|
7669
7655
|
}
|
7670
7656
|
}
|
7671
|
-
|
7672
|
-
if (this.verbose && window && window.console) {
|
7673
|
-
console.log(list_activity);
|
7674
|
-
}
|
7675
|
-
}
|
7676
|
-
onjoinpttchannel(join_ptt_channel) {
|
7657
|
+
onsfusignalingfwd(event) {
|
7677
7658
|
if (this.verbose && window && window.console) {
|
7678
|
-
console.log(
|
7659
|
+
console.log(event);
|
7679
7660
|
}
|
7680
7661
|
}
|
7681
|
-
|
7662
|
+
onactivityupdated(list_activity) {
|
7682
7663
|
if (this.verbose && window && window.console) {
|
7683
|
-
console.log(
|
7664
|
+
console.log(list_activity);
|
7684
7665
|
}
|
7685
7666
|
}
|
7686
7667
|
onsdtopicevent(sd_topic_event) {
|
@@ -7971,6 +7952,20 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7971
7952
|
return response.webrtc_signaling_fwd;
|
7972
7953
|
});
|
7973
7954
|
}
|
7955
|
+
forwardSFUSignaling(user_id, data_type, json_data, channel_id, clan_id) {
|
7956
|
+
return __async(this, null, function* () {
|
7957
|
+
const response = yield this.send({
|
7958
|
+
sfu_signaling_fwd: {
|
7959
|
+
user_id,
|
7960
|
+
data_type,
|
7961
|
+
json_data,
|
7962
|
+
channel_id,
|
7963
|
+
clan_id
|
7964
|
+
}
|
7965
|
+
});
|
7966
|
+
return response.sfu_signaling_fwd;
|
7967
|
+
});
|
7968
|
+
}
|
7974
7969
|
makeCallPush(receiver_id, json_data, channel_id, caller_id) {
|
7975
7970
|
return __async(this, null, function* () {
|
7976
7971
|
const response = yield this.send({
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7316,16 +7316,12 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7316
7316
|
this.onwebrtcsignalingfwd(
|
7317
7317
|
message.webrtc_signaling_fwd
|
7318
7318
|
);
|
7319
|
+
} else if (message.sfu_signaling_fwd) {
|
7320
|
+
this.onsfusignalingfwd(
|
7321
|
+
message.sfu_signaling_fwd
|
7322
|
+
);
|
7319
7323
|
} else if (message.list_activity) {
|
7320
7324
|
this.onactivityupdated(message.list_activity);
|
7321
|
-
} else if (message.join_ptt_channel) {
|
7322
|
-
this.onjoinpttchannel(message.join_ptt_channel);
|
7323
|
-
} else if (message.talk_ptt_channel) {
|
7324
|
-
this.ontalkpttchannel(message.talk_ptt_channel);
|
7325
|
-
} else if (message.ptt_joined_event) {
|
7326
|
-
this.onpttchanneljoined(message.ptt_joined_event);
|
7327
|
-
} else if (message.ptt_leaved_event) {
|
7328
|
-
this.onpttchannelleaved(message.ptt_leaved_event);
|
7329
7325
|
} else if (message.sd_topic_event) {
|
7330
7326
|
this.onsdtopicevent(message.sd_topic_event);
|
7331
7327
|
} else if (message.channel_app_event) {
|
@@ -7589,16 +7585,6 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7589
7585
|
console.log(streaming_leaved_event);
|
7590
7586
|
}
|
7591
7587
|
}
|
7592
|
-
onpttchanneljoined(ptt_joined_event) {
|
7593
|
-
if (this.verbose && window && window.console) {
|
7594
|
-
console.log(ptt_joined_event);
|
7595
|
-
}
|
7596
|
-
}
|
7597
|
-
onpttchannelleaved(ptt_leaved_event) {
|
7598
|
-
if (this.verbose && window && window.console) {
|
7599
|
-
console.log(ptt_leaved_event);
|
7600
|
-
}
|
7601
|
-
}
|
7602
7588
|
onpermissionset(permission_set_event) {
|
7603
7589
|
if (this.verbose && window && window.console) {
|
7604
7590
|
console.log(permission_set_event);
|
@@ -7634,19 +7620,14 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7634
7620
|
console.log(event);
|
7635
7621
|
}
|
7636
7622
|
}
|
7637
|
-
|
7638
|
-
if (this.verbose && window && window.console) {
|
7639
|
-
console.log(list_activity);
|
7640
|
-
}
|
7641
|
-
}
|
7642
|
-
onjoinpttchannel(join_ptt_channel) {
|
7623
|
+
onsfusignalingfwd(event) {
|
7643
7624
|
if (this.verbose && window && window.console) {
|
7644
|
-
console.log(
|
7625
|
+
console.log(event);
|
7645
7626
|
}
|
7646
7627
|
}
|
7647
|
-
|
7628
|
+
onactivityupdated(list_activity) {
|
7648
7629
|
if (this.verbose && window && window.console) {
|
7649
|
-
console.log(
|
7630
|
+
console.log(list_activity);
|
7650
7631
|
}
|
7651
7632
|
}
|
7652
7633
|
onsdtopicevent(sd_topic_event) {
|
@@ -7937,6 +7918,20 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7937
7918
|
return response.webrtc_signaling_fwd;
|
7938
7919
|
});
|
7939
7920
|
}
|
7921
|
+
forwardSFUSignaling(user_id, data_type, json_data, channel_id, clan_id) {
|
7922
|
+
return __async(this, null, function* () {
|
7923
|
+
const response = yield this.send({
|
7924
|
+
sfu_signaling_fwd: {
|
7925
|
+
user_id,
|
7926
|
+
data_type,
|
7927
|
+
json_data,
|
7928
|
+
channel_id,
|
7929
|
+
clan_id
|
7930
|
+
}
|
7931
|
+
});
|
7932
|
+
return response.sfu_signaling_fwd;
|
7933
|
+
});
|
7934
|
+
}
|
7940
7935
|
makeCallPush(receiver_id, json_data, channel_id, caller_id) {
|
7941
7936
|
return __async(this, null, function* () {
|
7942
7937
|
const response = yield this.send({
|
package/dist/socket.d.ts
CHANGED
@@ -632,53 +632,12 @@ export interface WebrtcSignalingFwd {
|
|
632
632
|
channel_id: string;
|
633
633
|
caller_id: string;
|
634
634
|
}
|
635
|
-
export interface
|
636
|
-
/** channel id */
|
637
|
-
channel_id: string;
|
638
|
-
/** type offer, answer or candidate */
|
635
|
+
export interface SFUSignalingFwd {
|
639
636
|
data_type: number;
|
640
|
-
/** offer */
|
641
637
|
json_data: string;
|
642
|
-
/** receiver id */
|
643
|
-
user_id: string;
|
644
|
-
/** clan id */
|
645
|
-
clan_id: string;
|
646
|
-
/** is talk */
|
647
|
-
is_talk: boolean;
|
648
|
-
}
|
649
|
-
export interface TalkPTTChannel {
|
650
|
-
user_id: string;
|
651
|
-
channel_id: string;
|
652
|
-
clan_id: string;
|
653
|
-
is_talk: boolean;
|
654
|
-
}
|
655
|
-
/** PTT Joined event */
|
656
|
-
export interface PTTLeavedEvent {
|
657
|
-
/** id */
|
658
|
-
id: string;
|
659
|
-
/** The unique identifier of the chat clan. */
|
660
|
-
clan_id: string;
|
661
|
-
/** channel id */
|
662
638
|
channel_id: string;
|
663
|
-
/** user_id */
|
664
|
-
user_id: string;
|
665
|
-
}
|
666
|
-
/** PTT Joined event */
|
667
|
-
export interface PTTJoinedEvent {
|
668
|
-
/** The unique identifier of the chat clan. */
|
669
639
|
clan_id: string;
|
670
|
-
/** The clan_name */
|
671
|
-
clan_name: string;
|
672
|
-
/** id */
|
673
|
-
id: string;
|
674
|
-
/** ptt participant */
|
675
|
-
participant: string;
|
676
|
-
/** user id */
|
677
640
|
user_id: string;
|
678
|
-
/** channel label */
|
679
|
-
channel_label: string;
|
680
|
-
/** channel id */
|
681
|
-
channel_id: string;
|
682
641
|
}
|
683
642
|
export interface ListActivity {
|
684
643
|
acts: ApiUserActivity[];
|
@@ -742,6 +701,7 @@ export interface Socket {
|
|
742
701
|
handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string) => Promise<MessageButtonClicked>;
|
743
702
|
handleDropdownBoxSelected: (message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>) => Promise<DropdownBoxSelected>;
|
744
703
|
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string, caller_id: string) => Promise<WebrtcSignalingFwd>;
|
704
|
+
forwardSFUSignaling: (user_id: string, data_type: number, json_data: string, channel_id: string, clan_id: string) => Promise<SFUSignalingFwd>;
|
745
705
|
makeCallPush: (receiverId: string, jsonData: string, channelId: string, caller_id: string) => Promise<IncomingCallPush>;
|
746
706
|
writeChannelAppEvent: (clan_id: string, channel_id: string, action: number) => Promise<ChannelAppEvent>;
|
747
707
|
/** Handle disconnect events received from the socket. */
|
@@ -802,6 +762,7 @@ export interface Socket {
|
|
802
762
|
onmessagebuttonclicked: (event: MessageButtonClicked) => void;
|
803
763
|
onmessagedropdownboxselected: (event: DropdownBoxSelected) => void;
|
804
764
|
onwebrtcsignalingfwd: (event: WebrtcSignalingFwd) => void;
|
765
|
+
onsfusignalingfwd: (event: SFUSignalingFwd) => void;
|
805
766
|
oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;
|
806
767
|
oncoffeegiven: (give_coffee_event: ApiGiveCoffeeEvent) => void;
|
807
768
|
oneventemoji: (event_emoji: EventEmoji) => void;
|
@@ -815,10 +776,6 @@ export interface Socket {
|
|
815
776
|
onunmuteevent: (unmute_event: UnmuteEvent) => void;
|
816
777
|
ontokensent: (token: ApiTokenSentEvent) => void;
|
817
778
|
onactivityupdated: (list_activity: ListActivity) => void;
|
818
|
-
onjoinpttchannel: (join_ptt_channel: JoinPTTChannel) => void;
|
819
|
-
ontalkpttchannel: (talk_ptt_channel: TalkPTTChannel) => void;
|
820
|
-
onpttchanneljoined: (ptt_joined_event: PTTJoinedEvent) => void;
|
821
|
-
onpttchannelleaved: (ptt_leaved_event: PTTLeavedEvent) => void;
|
822
779
|
onsdtopicevent: (sd_topic_event: SdTopicEvent) => void;
|
823
780
|
onchannelappevent: (event: ChannelAppEvent) => void;
|
824
781
|
onuserstatusevent: (user_status_event: UserStatusEvent) => void;
|
@@ -892,8 +849,6 @@ export declare class DefaultSocket implements Socket {
|
|
892
849
|
onstreamingchannelended(streaming_ended_event: StreamingEndedEvent): void;
|
893
850
|
onstreamingchanneljoined(streaming_joined_event: StreamingJoinedEvent): void;
|
894
851
|
onstreamingchannelleaved(streaming_leaved_event: StreamingLeavedEvent): void;
|
895
|
-
onpttchanneljoined(ptt_joined_event: PTTJoinedEvent): void;
|
896
|
-
onpttchannelleaved(ptt_leaved_event: PTTLeavedEvent): void;
|
897
852
|
onpermissionset(permission_set_event: PermissionSet): void;
|
898
853
|
onpermissionchanged(permission_changed_event: PermissionChangedEvent): void;
|
899
854
|
onunmuteevent(unmute_event: UnmuteEvent): void;
|
@@ -901,9 +856,8 @@ export declare class DefaultSocket implements Socket {
|
|
901
856
|
onmessagebuttonclicked(messageButtonClicked: MessageButtonClicked): void;
|
902
857
|
onmessagedropdownboxselected(msg: DropdownBoxSelected): void;
|
903
858
|
onwebrtcsignalingfwd(event: WebrtcSignalingFwd): void;
|
859
|
+
onsfusignalingfwd(event: SFUSignalingFwd): void;
|
904
860
|
onactivityupdated(list_activity: ListActivity): void;
|
905
|
-
onjoinpttchannel(join_ptt_channel: JoinPTTChannel): void;
|
906
|
-
ontalkpttchannel(talk_ptt_channel: TalkPTTChannel): void;
|
907
861
|
onsdtopicevent(sd_topic_event: SdTopicEvent): void;
|
908
862
|
onchannelappevent(event: ChannelAppEvent): void;
|
909
863
|
onuserstatusevent(user_status_event: UserStatusEvent): void;
|
@@ -928,6 +882,7 @@ export declare class DefaultSocket implements Socket {
|
|
928
882
|
writeCustomStatus(clan_id: string, status: string): Promise<CustomStatusEvent>;
|
929
883
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
930
884
|
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
|
885
|
+
forwardSFUSignaling(user_id: string, data_type: number, json_data: string, channel_id: string, clan_id: string): Promise<SFUSignalingFwd>;
|
931
886
|
makeCallPush(receiver_id: string, json_data: string, channel_id: string, caller_id: string): Promise<IncomingCallPush>;
|
932
887
|
handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
|
933
888
|
handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string): Promise<MessageButtonClicked>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -891,62 +891,14 @@ export interface WebrtcSignalingFwd {
|
|
891
891
|
caller_id: string;
|
892
892
|
}
|
893
893
|
|
894
|
-
export interface
|
895
|
-
/** channel id */
|
896
|
-
channel_id: string;
|
897
|
-
/** type offer, answer or candidate */
|
894
|
+
export interface SFUSignalingFwd {
|
898
895
|
data_type: number;
|
899
|
-
/** offer */
|
900
896
|
json_data: string;
|
901
|
-
/** receiver id */
|
902
|
-
user_id: string;
|
903
|
-
/** clan id */
|
904
|
-
clan_id: string;
|
905
|
-
/** is talk */
|
906
|
-
is_talk: boolean;
|
907
|
-
}
|
908
|
-
|
909
|
-
export interface TalkPTTChannel {
|
910
|
-
// user id
|
911
|
-
user_id: string;
|
912
|
-
// channel id
|
913
897
|
channel_id: string;
|
914
|
-
// clan id
|
915
898
|
clan_id: string;
|
916
|
-
// is talk
|
917
|
-
is_talk: boolean;
|
918
|
-
}
|
919
|
-
|
920
|
-
/** PTT Joined event */
|
921
|
-
export interface PTTLeavedEvent {
|
922
|
-
/** id */
|
923
|
-
id: string;
|
924
|
-
/** The unique identifier of the chat clan. */
|
925
|
-
clan_id: string;
|
926
|
-
/** channel id */
|
927
|
-
channel_id: string;
|
928
|
-
/** user_id */
|
929
899
|
user_id: string;
|
930
900
|
}
|
931
901
|
|
932
|
-
/** PTT Joined event */
|
933
|
-
export interface PTTJoinedEvent {
|
934
|
-
/** The unique identifier of the chat clan. */
|
935
|
-
clan_id: string;
|
936
|
-
/** The clan_name */
|
937
|
-
clan_name: string;
|
938
|
-
/** id */
|
939
|
-
id: string;
|
940
|
-
/** ptt participant */
|
941
|
-
participant: string;
|
942
|
-
/** user id */
|
943
|
-
user_id: string;
|
944
|
-
/** channel label */
|
945
|
-
channel_label: string;
|
946
|
-
/** channel id */
|
947
|
-
channel_id: string;
|
948
|
-
}
|
949
|
-
|
950
902
|
export interface ListActivity {
|
951
903
|
acts: ApiUserActivity[];
|
952
904
|
}
|
@@ -1161,6 +1113,14 @@ export interface Socket {
|
|
1161
1113
|
caller_id: string
|
1162
1114
|
) => Promise<WebrtcSignalingFwd>;
|
1163
1115
|
|
1116
|
+
forwardSFUSignaling: (
|
1117
|
+
user_id: string,
|
1118
|
+
data_type: number,
|
1119
|
+
json_data: string,
|
1120
|
+
channel_id: string,
|
1121
|
+
clan_id: string
|
1122
|
+
) => Promise<SFUSignalingFwd>;
|
1123
|
+
|
1164
1124
|
makeCallPush: (
|
1165
1125
|
receiverId: string,
|
1166
1126
|
jsonData: string,
|
@@ -1282,6 +1242,8 @@ export interface Socket {
|
|
1282
1242
|
|
1283
1243
|
onwebrtcsignalingfwd: (event: WebrtcSignalingFwd) => void;
|
1284
1244
|
|
1245
|
+
onsfusignalingfwd: (event: SFUSignalingFwd) => void;
|
1246
|
+
|
1285
1247
|
oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;
|
1286
1248
|
|
1287
1249
|
oncoffeegiven: (give_coffee_event: ApiGiveCoffeeEvent) => void;
|
@@ -1316,14 +1278,6 @@ export interface Socket {
|
|
1316
1278
|
|
1317
1279
|
onactivityupdated: (list_activity: ListActivity) => void;
|
1318
1280
|
|
1319
|
-
onjoinpttchannel: (join_ptt_channel: JoinPTTChannel) => void;
|
1320
|
-
|
1321
|
-
ontalkpttchannel: (talk_ptt_channel: TalkPTTChannel) => void;
|
1322
|
-
|
1323
|
-
onpttchanneljoined: (ptt_joined_event: PTTJoinedEvent) => void;
|
1324
|
-
|
1325
|
-
onpttchannelleaved: (ptt_leaved_event: PTTLeavedEvent) => void;
|
1326
|
-
|
1327
1281
|
onsdtopicevent: (sd_topic_event: SdTopicEvent) => void;
|
1328
1282
|
|
1329
1283
|
onchannelappevent: (event: ChannelAppEvent) => void;
|
@@ -1592,16 +1546,12 @@ export class DefaultSocket implements Socket {
|
|
1592
1546
|
this.onwebrtcsignalingfwd(
|
1593
1547
|
<WebrtcSignalingFwd>message.webrtc_signaling_fwd
|
1594
1548
|
);
|
1549
|
+
} else if (message.sfu_signaling_fwd) {
|
1550
|
+
this.onsfusignalingfwd(
|
1551
|
+
<SFUSignalingFwd>message.sfu_signaling_fwd
|
1552
|
+
);
|
1595
1553
|
} else if (message.list_activity) {
|
1596
1554
|
this.onactivityupdated(<ListActivity>message.list_activity);
|
1597
|
-
} else if (message.join_ptt_channel) {
|
1598
|
-
this.onjoinpttchannel(<JoinPTTChannel>message.join_ptt_channel);
|
1599
|
-
} else if (message.talk_ptt_channel) {
|
1600
|
-
this.ontalkpttchannel(<TalkPTTChannel>message.talk_ptt_channel);
|
1601
|
-
} else if (message.ptt_joined_event) {
|
1602
|
-
this.onpttchanneljoined(<PTTJoinedEvent>message.ptt_joined_event);
|
1603
|
-
} else if (message.ptt_leaved_event) {
|
1604
|
-
this.onpttchannelleaved(<PTTLeavedEvent>message.ptt_leaved_event);
|
1605
1555
|
} else if (message.sd_topic_event) {
|
1606
1556
|
this.onsdtopicevent(<SdTopicEvent>message.sd_topic_event);
|
1607
1557
|
} else if (message.channel_app_event) {
|
@@ -1915,18 +1865,6 @@ export class DefaultSocket implements Socket {
|
|
1915
1865
|
}
|
1916
1866
|
}
|
1917
1867
|
|
1918
|
-
onpttchanneljoined(ptt_joined_event: PTTJoinedEvent) {
|
1919
|
-
if (this.verbose && window && window.console) {
|
1920
|
-
console.log(ptt_joined_event);
|
1921
|
-
}
|
1922
|
-
}
|
1923
|
-
|
1924
|
-
onpttchannelleaved(ptt_leaved_event: PTTLeavedEvent) {
|
1925
|
-
if (this.verbose && window && window.console) {
|
1926
|
-
console.log(ptt_leaved_event);
|
1927
|
-
}
|
1928
|
-
}
|
1929
|
-
|
1930
1868
|
onpermissionset(permission_set_event: PermissionSet) {
|
1931
1869
|
if (this.verbose && window && window.console) {
|
1932
1870
|
console.log(permission_set_event);
|
@@ -1969,21 +1907,15 @@ export class DefaultSocket implements Socket {
|
|
1969
1907
|
}
|
1970
1908
|
}
|
1971
1909
|
|
1972
|
-
|
1910
|
+
onsfusignalingfwd(event: SFUSignalingFwd) {
|
1973
1911
|
if (this.verbose && window && window.console) {
|
1974
|
-
console.log(
|
1975
|
-
}
|
1976
|
-
}
|
1977
|
-
|
1978
|
-
onjoinpttchannel(join_ptt_channel: JoinPTTChannel) {
|
1979
|
-
if (this.verbose && window && window.console) {
|
1980
|
-
console.log(join_ptt_channel);
|
1912
|
+
console.log(event);
|
1981
1913
|
}
|
1982
1914
|
}
|
1983
1915
|
|
1984
|
-
|
1916
|
+
onactivityupdated(list_activity: ListActivity) {
|
1985
1917
|
if (this.verbose && window && window.console) {
|
1986
|
-
console.log(
|
1918
|
+
console.log(list_activity);
|
1987
1919
|
}
|
1988
1920
|
}
|
1989
1921
|
|
@@ -2395,6 +2327,25 @@ export class DefaultSocket implements Socket {
|
|
2395
2327
|
return response.webrtc_signaling_fwd;
|
2396
2328
|
}
|
2397
2329
|
|
2330
|
+
async forwardSFUSignaling(
|
2331
|
+
user_id: string,
|
2332
|
+
data_type: number,
|
2333
|
+
json_data: string,
|
2334
|
+
channel_id: string,
|
2335
|
+
clan_id: string
|
2336
|
+
): Promise<SFUSignalingFwd> {
|
2337
|
+
const response = await this.send({
|
2338
|
+
sfu_signaling_fwd: {
|
2339
|
+
user_id: user_id,
|
2340
|
+
data_type: data_type,
|
2341
|
+
json_data: json_data,
|
2342
|
+
channel_id: channel_id,
|
2343
|
+
clan_id: clan_id,
|
2344
|
+
},
|
2345
|
+
});
|
2346
|
+
return response.sfu_signaling_fwd;
|
2347
|
+
}
|
2348
|
+
|
2398
2349
|
async makeCallPush(
|
2399
2350
|
receiver_id: string,
|
2400
2351
|
json_data: string,
|