vani-meeting-client 0.3.7 → 0.3.8

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.
@@ -481,6 +481,10 @@ var SFUHandler = /** @class */ (function (_super) {
481
481
  _this.dataConsumer.push(consumer);
482
482
  consumer.on("message", function (message, ppid) {
483
483
  var _a;
484
+ if (ppid === 51)
485
+ console.log("text message received:", message.toString("utf-8"));
486
+ else if (ppid === 53)
487
+ console.log("binary message received");
484
488
  if (message && message.message) {
485
489
  (_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.onMessage(message.message);
486
490
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",