vani-meeting-client 0.3.6 → 0.3.9
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.
|
@@ -480,6 +480,15 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
480
480
|
this.consumerTransport.consumeData(consumerObj).then(function (consumer) {
|
|
481
481
|
_this.dataConsumer.push(consumer);
|
|
482
482
|
consumer.on("message", function (message, ppid) {
|
|
483
|
+
var _a;
|
|
484
|
+
console.log("text message received:", message.toString("utf-8"));
|
|
485
|
+
if (ppid === 51)
|
|
486
|
+
console.log("text message received:", message.toString("utf-8"));
|
|
487
|
+
else if (ppid === 53)
|
|
488
|
+
console.log("binary message received");
|
|
489
|
+
if (message && message.message) {
|
|
490
|
+
(_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.onMessage(message.message);
|
|
491
|
+
}
|
|
483
492
|
console.log("OnMessage Data Channel", message);
|
|
484
493
|
});
|
|
485
494
|
});
|