@stream-io/video-client 0.0.27 → 0.0.28

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.js CHANGED
@@ -9336,12 +9336,12 @@ class Call {
9336
9336
  return response;
9337
9337
  });
9338
9338
  /**
9339
- * Sends an event to all call participants.
9339
+ * Sends a custom event to all call participants.
9340
9340
  *
9341
9341
  * @param event the event to send.
9342
9342
  */
9343
- this.sendEvent = (event) => __awaiter(this, void 0, void 0, function* () {
9344
- return this.streamClient.post(`${this.streamClientBasePath}/event`, event);
9343
+ this.sendCustomEvent = (payload) => __awaiter(this, void 0, void 0, function* () {
9344
+ return this.streamClient.post(`${this.streamClientBasePath}/event`, { custom: payload });
9345
9345
  });
9346
9346
  this.type = type;
9347
9347
  this.id = id;
@@ -11109,7 +11109,7 @@ class StreamClient {
11109
11109
  }
11110
11110
  getUserAgent() {
11111
11111
  return (this.userAgent ||
11112
- `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.26"}`);
11112
+ `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.27"}`);
11113
11113
  }
11114
11114
  setUserAgent(userAgent) {
11115
11115
  this.userAgent = userAgent;