@nightlylabs/dex-sdk 0.0.77 → 0.0.78

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/dist/index.cjs CHANGED
@@ -1125,7 +1125,11 @@ var Client = class _Client {
1125
1125
  }
1126
1126
  static async init(connection, enableWs = true, url, apiKey, chainId) {
1127
1127
  const id = chainId || await connection.getChainId();
1128
- return new _Client(connection, enableWs, url, apiKey, id);
1128
+ const client = new _Client(connection, enableWs, url, apiKey, id);
1129
+ if (enableWs) {
1130
+ client.connectWebSocket();
1131
+ }
1132
+ return client;
1129
1133
  }
1130
1134
  static async create(connection, enableWs = true, url, apiKey) {
1131
1135
  return _Client.init(connection, enableWs, url, apiKey);
package/dist/index.js CHANGED
@@ -1076,7 +1076,11 @@ var Client = class _Client {
1076
1076
  }
1077
1077
  static async init(connection, enableWs = true, url, apiKey, chainId) {
1078
1078
  const id = chainId || await connection.getChainId();
1079
- return new _Client(connection, enableWs, url, apiKey, id);
1079
+ const client = new _Client(connection, enableWs, url, apiKey, id);
1080
+ if (enableWs) {
1081
+ client.connectWebSocket();
1082
+ }
1083
+ return client;
1080
1084
  }
1081
1085
  static async create(connection, enableWs = true, url, apiKey) {
1082
1086
  return _Client.init(connection, enableWs, url, apiKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nightlylabs/dex-sdk",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {