mezon-js 2.9.71 → 2.9.72
Sign up to get free protection for your applications and to get access to all the features.
- package/client.ts +6 -0
- package/dist/client.d.ts +5 -0
- package/dist/mezon-js.cjs.js +8 -1
- package/dist/mezon-js.esm.mjs +8 -1
- package/package.json +1 -1
package/client.ts
CHANGED
@@ -181,6 +181,12 @@ export enum NotificationType {
|
|
181
181
|
NOTHING_MESSAGE = 3,
|
182
182
|
}
|
183
183
|
|
184
|
+
export enum WebrtcSignalingType {
|
185
|
+
WEBRTC_SDP_OFFER = 1,
|
186
|
+
WEBRTC_SDP_ANSWER = 2,
|
187
|
+
WEBRTC_ICE_CANDIDATE = 3
|
188
|
+
}
|
189
|
+
|
184
190
|
/** Response for an RPC function executed on the server. */
|
185
191
|
export interface RpcResponse {
|
186
192
|
/** The identifier of the function. */
|
package/dist/client.d.ts
CHANGED
@@ -40,6 +40,11 @@ export declare enum NotificationType {
|
|
40
40
|
MENTION_MESSAGE = 2,
|
41
41
|
NOTHING_MESSAGE = 3
|
42
42
|
}
|
43
|
+
export declare enum WebrtcSignalingType {
|
44
|
+
WEBRTC_SDP_OFFER = 1,
|
45
|
+
WEBRTC_SDP_ANSWER = 2,
|
46
|
+
WEBRTC_ICE_CANDIDATE = 3
|
47
|
+
}
|
43
48
|
/** Response for an RPC function executed on the server. */
|
44
49
|
export interface RpcResponse {
|
45
50
|
/** The identifier of the function. */
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -60,7 +60,8 @@ __export(mezon_js_exports, {
|
|
60
60
|
DefaultSocket: () => DefaultSocket,
|
61
61
|
NotificationType: () => NotificationType,
|
62
62
|
Session: () => Session,
|
63
|
-
WebSocketAdapterText: () => WebSocketAdapterText
|
63
|
+
WebSocketAdapterText: () => WebSocketAdapterText,
|
64
|
+
WebrtcSignalingType: () => WebrtcSignalingType
|
64
65
|
});
|
65
66
|
module.exports = __toCommonJS(mezon_js_exports);
|
66
67
|
|
@@ -7427,6 +7428,12 @@ var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
7427
7428
|
NotificationType2[NotificationType2["NOTHING_MESSAGE"] = 3] = "NOTHING_MESSAGE";
|
7428
7429
|
return NotificationType2;
|
7429
7430
|
})(NotificationType || {});
|
7431
|
+
var WebrtcSignalingType = /* @__PURE__ */ ((WebrtcSignalingType2) => {
|
7432
|
+
WebrtcSignalingType2[WebrtcSignalingType2["WEBRTC_SDP_OFFER"] = 1] = "WEBRTC_SDP_OFFER";
|
7433
|
+
WebrtcSignalingType2[WebrtcSignalingType2["WEBRTC_SDP_ANSWER"] = 2] = "WEBRTC_SDP_ANSWER";
|
7434
|
+
WebrtcSignalingType2[WebrtcSignalingType2["WEBRTC_ICE_CANDIDATE"] = 3] = "WEBRTC_ICE_CANDIDATE";
|
7435
|
+
return WebrtcSignalingType2;
|
7436
|
+
})(WebrtcSignalingType || {});
|
7430
7437
|
var Client = class {
|
7431
7438
|
constructor(serverkey = DEFAULT_SERVER_KEY, host = DEFAULT_HOST, port = DEFAULT_PORT, useSSL = false, timeout = DEFAULT_TIMEOUT_MS, autoRefreshSession = true) {
|
7432
7439
|
this.serverkey = serverkey;
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7398,6 +7398,12 @@ var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
7398
7398
|
NotificationType2[NotificationType2["NOTHING_MESSAGE"] = 3] = "NOTHING_MESSAGE";
|
7399
7399
|
return NotificationType2;
|
7400
7400
|
})(NotificationType || {});
|
7401
|
+
var WebrtcSignalingType = /* @__PURE__ */ ((WebrtcSignalingType2) => {
|
7402
|
+
WebrtcSignalingType2[WebrtcSignalingType2["WEBRTC_SDP_OFFER"] = 1] = "WEBRTC_SDP_OFFER";
|
7403
|
+
WebrtcSignalingType2[WebrtcSignalingType2["WEBRTC_SDP_ANSWER"] = 2] = "WEBRTC_SDP_ANSWER";
|
7404
|
+
WebrtcSignalingType2[WebrtcSignalingType2["WEBRTC_ICE_CANDIDATE"] = 3] = "WEBRTC_ICE_CANDIDATE";
|
7405
|
+
return WebrtcSignalingType2;
|
7406
|
+
})(WebrtcSignalingType || {});
|
7401
7407
|
var Client = class {
|
7402
7408
|
constructor(serverkey = DEFAULT_SERVER_KEY, host = DEFAULT_HOST, port = DEFAULT_PORT, useSSL = false, timeout = DEFAULT_TIMEOUT_MS, autoRefreshSession = true) {
|
7403
7409
|
this.serverkey = serverkey;
|
@@ -9784,5 +9790,6 @@ export {
|
|
9784
9790
|
DefaultSocket,
|
9785
9791
|
NotificationType,
|
9786
9792
|
Session,
|
9787
|
-
WebSocketAdapterText
|
9793
|
+
WebSocketAdapterText,
|
9794
|
+
WebrtcSignalingType
|
9788
9795
|
};
|