mezon-js 2.10.48 → 2.10.49
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/api.gen.ts +3 -3
- package/dist/api.gen.d.ts +2 -0
- package/dist/mezon-js.cjs.js +2 -7
- package/dist/mezon-js.esm.mjs +2 -7
- package/dist/web_socket_adapter.d.ts +0 -1
- package/package.json +1 -1
- package/web_socket_adapter.ts +0 -6
package/api.gen.ts
CHANGED
@@ -619,10 +619,10 @@ export interface ApiChannelAttachment {
|
|
619
619
|
url?: string;
|
620
620
|
//message id.
|
621
621
|
message_id?: string;
|
622
|
-
//
|
622
|
+
//width.
|
623
623
|
width?: number;
|
624
|
-
//
|
625
|
-
|
624
|
+
//height.
|
625
|
+
height?: number;
|
626
626
|
}
|
627
627
|
|
628
628
|
/** */
|
package/dist/api.gen.d.ts
CHANGED
package/dist/mezon-js.cjs.js
CHANGED
@@ -7100,15 +7100,10 @@ var WebSocketAdapterText = class {
|
|
7100
7100
|
platform
|
7101
7101
|
)}`;
|
7102
7102
|
this._socket = new WebSocket(url);
|
7103
|
-
this._pcRef = new RTCPeerConnection({
|
7104
|
-
iceServers: [{ urls: "stun:stun.l.google.com:19302" }]
|
7105
|
-
});
|
7106
7103
|
}
|
7107
7104
|
close() {
|
7108
|
-
var _a
|
7109
|
-
(_a = this.
|
7110
|
-
this._pcRef = void 0;
|
7111
|
-
(_b = this._socket) == null ? void 0 : _b.close();
|
7105
|
+
var _a;
|
7106
|
+
(_a = this._socket) == null ? void 0 : _a.close();
|
7112
7107
|
this._socket = void 0;
|
7113
7108
|
}
|
7114
7109
|
send(msg) {
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7066,15 +7066,10 @@ var WebSocketAdapterText = class {
|
|
7066
7066
|
platform
|
7067
7067
|
)}`;
|
7068
7068
|
this._socket = new WebSocket(url);
|
7069
|
-
this._pcRef = new RTCPeerConnection({
|
7070
|
-
iceServers: [{ urls: "stun:stun.l.google.com:19302" }]
|
7071
|
-
});
|
7072
7069
|
}
|
7073
7070
|
close() {
|
7074
|
-
var _a
|
7075
|
-
(_a = this.
|
7076
|
-
this._pcRef = void 0;
|
7077
|
-
(_b = this._socket) == null ? void 0 : _b.close();
|
7071
|
+
var _a;
|
7072
|
+
(_a = this._socket) == null ? void 0 : _a.close();
|
7078
7073
|
this._socket = void 0;
|
7079
7074
|
}
|
7080
7075
|
send(msg) {
|
@@ -68,7 +68,6 @@ export interface SocketOpenHandler {
|
|
68
68
|
*/
|
69
69
|
export declare class WebSocketAdapterText implements WebSocketAdapter {
|
70
70
|
private _socket?;
|
71
|
-
private _pcRef?;
|
72
71
|
get onClose(): SocketCloseHandler | null;
|
73
72
|
set onClose(value: SocketCloseHandler | null);
|
74
73
|
get onError(): SocketErrorHandler | null;
|
package/package.json
CHANGED
package/web_socket_adapter.ts
CHANGED
@@ -90,7 +90,6 @@ export interface SocketOpenHandler {
|
|
90
90
|
*/
|
91
91
|
export class WebSocketAdapterText implements WebSocketAdapter {
|
92
92
|
private _socket?: WebSocket;
|
93
|
-
private _pcRef?: RTCPeerConnection;
|
94
93
|
|
95
94
|
get onClose(): SocketCloseHandler | null {
|
96
95
|
return this._socket!.onclose;
|
@@ -161,14 +160,9 @@ export class WebSocketAdapterText implements WebSocketAdapter {
|
|
161
160
|
platform
|
162
161
|
)}`;
|
163
162
|
this._socket = new WebSocket(url);
|
164
|
-
this._pcRef = new RTCPeerConnection({
|
165
|
-
iceServers: [{ urls: "stun:stun.l.google.com:19302" }],
|
166
|
-
});
|
167
163
|
}
|
168
164
|
|
169
165
|
close() {
|
170
|
-
this._pcRef?.close();
|
171
|
-
this._pcRef = undefined;
|
172
166
|
this._socket?.close();
|
173
167
|
this._socket = undefined;
|
174
168
|
}
|