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 CHANGED
@@ -619,10 +619,10 @@ export interface ApiChannelAttachment {
619
619
  url?: string;
620
620
  //message id.
621
621
  message_id?: string;
622
- //message id.
622
+ //width.
623
623
  width?: number;
624
- //message id.
625
- hight?: number;
624
+ //height.
625
+ height?: number;
626
626
  }
627
627
 
628
628
  /** */
package/dist/api.gen.d.ts CHANGED
@@ -362,6 +362,8 @@ export interface ApiChannelAttachment {
362
362
  uploader?: string;
363
363
  url?: string;
364
364
  message_id?: string;
365
+ width?: number;
366
+ height?: number;
365
367
  }
366
368
  /** */
367
369
  export interface ApiChannelAttachmentList {
@@ -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, _b;
7109
- (_a = this._pcRef) == null ? void 0 : _a.close();
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) {
@@ -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, _b;
7075
- (_a = this._pcRef) == null ? void 0 : _a.close();
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.48",
4
+ "version": "2.10.49",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
@@ -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
  }