implemented ending call functionality

Signed-off-by: heyhiru <hirentimbadiya74@gmail.com>
Este commit está contenido en:
heyhiru
2023-11-12 21:20:42 +05:30
padre bab17fa7b7
commit 140151d5ac
Se han modificado 3 ficheros con 74 adiciones y 13 borrados

Ver fichero

@@ -40,4 +40,11 @@ io.on("connection", (socket) => {
io.to(to).emit("peer:nego:final", { from: socket.id, ans });
});
socket.on("call:end", ({ to }) => {
io.to(to).emit("call:end", { from: socket.id });
});
socket.on("call:initiated", ({ to }) => {
io.to(to).emit("call:initiated", { from: socket.id });
});
})