mezon-sdk 2.7.7 → 2.7.8

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/client.ts CHANGED
@@ -20,8 +20,10 @@ import { ChannelCreatedEvent, ChannelDeletedEvent, ChannelUpdatedEvent, DefaultS
20
20
  import { WebSocketAdapter } from "./web_socket_adapter";
21
21
  import { WebSocketAdapterPb } from 'mezon-js-protobuf';
22
22
 
23
- const DEFAULT_HOST = "mezon.vn";
24
- const DEFAULT_PORT = "7305";
23
+ const DEFAULT_HOST = "127.0.0.1";
24
+ const DEFAULT_PORT = "7350";
25
+ // const DEFAULT_HOST = "mezon.vn";
26
+ // const DEFAULT_PORT = "7305";
25
27
  const DEFAULT_API_KEY = "defaultkey";
26
28
  const DEFAULT_TIMEOUT_MS = 7000;
27
29
  const DEFAULT_EXPIRED_TIMESPAN_MS = 5 * 60 * 1000;
@@ -309,7 +311,7 @@ export class MezonClient implements Client {
309
311
  readonly apiKey = DEFAULT_API_KEY,
310
312
  readonly host = DEFAULT_HOST,
311
313
  readonly port = DEFAULT_PORT,
312
- readonly useSSL = true,
314
+ readonly useSSL = false,
313
315
  readonly timeout = DEFAULT_TIMEOUT_MS,
314
316
  readonly autoRefreshSession = true) {
315
317
  const scheme = (useSSL) ? "https://" : "http://";
@@ -9128,13 +9128,13 @@ var WebSocketAdapterPb = class {
9128
9128
  };
9129
9129
 
9130
9130
  // client.ts
9131
- var DEFAULT_HOST = "mezon.vn";
9132
- var DEFAULT_PORT = "7305";
9131
+ var DEFAULT_HOST = "127.0.0.1";
9132
+ var DEFAULT_PORT = "7350";
9133
9133
  var DEFAULT_API_KEY = "defaultkey";
9134
9134
  var DEFAULT_TIMEOUT_MS = 7e3;
9135
9135
  var DEFAULT_EXPIRED_TIMESPAN_MS = 5 * 60 * 1e3;
9136
9136
  var MezonClient = class {
9137
- constructor(apiKey = DEFAULT_API_KEY, host = DEFAULT_HOST, port = DEFAULT_PORT, useSSL = true, timeout = DEFAULT_TIMEOUT_MS, autoRefreshSession = true) {
9137
+ constructor(apiKey = DEFAULT_API_KEY, host = DEFAULT_HOST, port = DEFAULT_PORT, useSSL = false, timeout = DEFAULT_TIMEOUT_MS, autoRefreshSession = true) {
9138
9138
  this.apiKey = apiKey;
9139
9139
  this.host = host;
9140
9140
  this.port = port;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-sdk",
3
- "version": "2.7.7",
3
+ "version": "2.7.8",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs",
6
6
  "docs": "typedoc index.ts --gaID UA-89839802-1 --out ../../docs"