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 +5 -3
- package/dist/mezon-sdk.cjs.js +3 -3
- package/package.json +1 -1
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 = "
|
|
24
|
-
const DEFAULT_PORT = "
|
|
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 =
|
|
314
|
+
readonly useSSL = false,
|
|
313
315
|
readonly timeout = DEFAULT_TIMEOUT_MS,
|
|
314
316
|
readonly autoRefreshSession = true) {
|
|
315
317
|
const scheme = (useSSL) ? "https://" : "http://";
|
package/dist/mezon-sdk.cjs.js
CHANGED
|
@@ -9128,13 +9128,13 @@ var WebSocketAdapterPb = class {
|
|
|
9128
9128
|
};
|
|
9129
9129
|
|
|
9130
9130
|
// client.ts
|
|
9131
|
-
var DEFAULT_HOST = "
|
|
9132
|
-
var DEFAULT_PORT = "
|
|
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 =
|
|
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;
|