Call ended event added
This commit is contained in:
parent
decd45827d
commit
1fab0febd4
@ -84,6 +84,11 @@ io.on("connection", (socket: Socket) => {
|
||||
socket.on("webrtc-ice-candidate", (data: { to: string; candidate: any }) => {
|
||||
socket.to(data.to).emit("webrtc-ice-candidate", data);
|
||||
});
|
||||
|
||||
// Handle call-ended event
|
||||
socket.on("call-ended", (data: { to: string }) => {
|
||||
socket.to(data.to).emit("call-ended");
|
||||
});
|
||||
});
|
||||
|
||||
// Define a basic route
|
||||
|
Loading…
x
Reference in New Issue
Block a user