vani-meeting-client 0.3.9 → 0.4.0
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.
|
@@ -241,7 +241,7 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
241
241
|
};
|
|
242
242
|
SFUHandler.prototype.sendMessageViaDataChannel = function (messagePayload) {
|
|
243
243
|
if (this.dataProducers && this.dataProducers.length > 0) {
|
|
244
|
-
this.dataProducers[0].send(messagePayload);
|
|
244
|
+
this.dataProducers[0].send(JSON.stringify(messagePayload));
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
247
|
SFUHandler.prototype.init = function () {
|
|
@@ -481,7 +481,7 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
481
481
|
_this.dataConsumer.push(consumer);
|
|
482
482
|
consumer.on("message", function (message, ppid) {
|
|
483
483
|
var _a;
|
|
484
|
-
console.log(
|
|
484
|
+
console.log(message);
|
|
485
485
|
if (ppid === 51)
|
|
486
486
|
console.log("text message received:", message.toString("utf-8"));
|
|
487
487
|
else if (ppid === 53)
|