@smplkit/sdk 3.0.0 → 3.0.1
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 +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21497,6 +21497,7 @@ var LoggingClient = class {
|
|
|
21497
21497
|
// src/ws.ts
|
|
21498
21498
|
var import_ws = __toESM(require("ws"), 1);
|
|
21499
21499
|
var BACKOFF_MS = [1e3, 2e3, 4e3, 8e3, 16e3, 32e3, 6e4];
|
|
21500
|
+
var SDK_VERSION = "0.0.0";
|
|
21500
21501
|
var SharedWebSocket = class {
|
|
21501
21502
|
_appBaseUrl;
|
|
21502
21503
|
_apiKey;
|
|
@@ -21597,7 +21598,9 @@ var SharedWebSocket = class {
|
|
|
21597
21598
|
const safeUrl = wsUrl.split("?")[0];
|
|
21598
21599
|
debug("websocket", `connecting to ${safeUrl}`);
|
|
21599
21600
|
try {
|
|
21600
|
-
const ws = new import_ws.default(wsUrl
|
|
21601
|
+
const ws = new import_ws.default(wsUrl, {
|
|
21602
|
+
headers: { "User-Agent": `smplkit-typescript-sdk/${SDK_VERSION}` }
|
|
21603
|
+
});
|
|
21601
21604
|
this._ws = ws;
|
|
21602
21605
|
ws.on("open", () => {
|
|
21603
21606
|
if (this._closed) {
|