Mark call as ready as soon as possible

This commit is contained in:
Pierre HUBERT 2020-04-11 14:30:16 +02:00
parent fd95411045
commit 8febe2a523

View File

@ -308,7 +308,12 @@ class CallWindow extends CustomEvents {
notify("An error occured while trying to connect!", "danger", 5) notify("An error occured while trying to connect!", "danger", 5)
}); });
this.mainPeer.on("connect", () => console.info("Connected to remote peer!")) this.mainPeer.on("connect", () => {
console.info("Connected to remote peer!")
ws("calls/mark_ready", {
callID: this.callID
})
})
this.mainPeer.on("message", message => { this.mainPeer.on("message", message => {
console.log("Message from remote peer: " + message); console.log("Message from remote peer: " + message);