Skip to content

Commit

Permalink
Update retry
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuNatsu committed Aug 23, 2023
1 parent d893e79 commit 6bdc89a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ io.on('connection', (socket: Socket): void => {
sessions.get(peerId)?.emit('candidate', id, data);
});

socket.on('retry', (peerId: string): void => {
if (typeof peerId !== 'string') {
return;
}

console.log(`[Websocket] Retry signal: ${id} -> ${peerId}`);
sessions.get(peerId)?.emit('retry', id);
});
socket.on('done', (peerId: string): void => {
if (typeof peerId !== 'string') {
return;
Expand Down

0 comments on commit 6bdc89a

Please sign in to comment.