@stinkycomputing/sesame-api-client 1.4.0-alpha.0 → 1.4.0

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.mjs CHANGED
@@ -22114,7 +22114,7 @@ var EaseKind = /* @__PURE__ */ ((EaseKind2) => {
22114
22114
  return EaseKind2;
22115
22115
  })(EaseKind || {});
22116
22116
  var SesameClient = class extends EventEmitter3 {
22117
- constructor(portOrUrl) {
22117
+ constructor(port) {
22118
22118
  super();
22119
22119
  this.subscriptions = [];
22120
22120
  this.errorIsLogged = false;
@@ -22124,9 +22124,8 @@ var SesameClient = class extends EventEmitter3 {
22124
22124
  };
22125
22125
  this.onCallbackMessage = () => {
22126
22126
  };
22127
- const url = typeof portOrUrl === "number" ? `ws://127.0.0.1:${portOrUrl}/api` : portOrUrl;
22128
22127
  this.conn = new SesameConnection({
22129
- url,
22128
+ url: `ws://127.0.0.1:${port}/api`,
22130
22129
  autoConnect: true,
22131
22130
  autoReconnect: true
22132
22131
  });