@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.js CHANGED
@@ -21432,6 +21432,7 @@ var LoggingClient = class {
21432
21432
  // src/ws.ts
21433
21433
  import WebSocket from "ws";
21434
21434
  var BACKOFF_MS = [1e3, 2e3, 4e3, 8e3, 16e3, 32e3, 6e4];
21435
+ var SDK_VERSION = "0.0.0";
21435
21436
  var SharedWebSocket = class {
21436
21437
  _appBaseUrl;
21437
21438
  _apiKey;
@@ -21532,7 +21533,9 @@ var SharedWebSocket = class {
21532
21533
  const safeUrl = wsUrl.split("?")[0];
21533
21534
  debug("websocket", `connecting to ${safeUrl}`);
21534
21535
  try {
21535
- const ws = new WebSocket(wsUrl);
21536
+ const ws = new WebSocket(wsUrl, {
21537
+ headers: { "User-Agent": `smplkit-typescript-sdk/${SDK_VERSION}` }
21538
+ });
21536
21539
  this._ws = ws;
21537
21540
  ws.on("open", () => {
21538
21541
  if (this._closed) {