({
socketId,
status,
teamId,
userId,
}: {
socketId?: string;
status: boolean;
teamId: string;
userId: string;
})
| 555 | } |
| 556 | |
| 557 | function onlineStatus({ |
| 558 | socketId, |
| 559 | status, |
| 560 | teamId, |
| 561 | userId, |
| 562 | }: { |
| 563 | socketId?: string; |
| 564 | status: boolean; |
| 565 | teamId: string; |
| 566 | userId: string; |
| 567 | }) { |
| 568 | const socket = getSocket(socketId); |
| 569 | |
| 570 | const roomName = `team-${teamId}`; |
| 571 | |
| 572 | if (socket) { |
| 573 | socket.to(roomName).emit('onlineStatusEvent', { |
| 574 | actionType: 'edited', |
| 575 | status, |
| 576 | userId, |
| 577 | teamId, |
| 578 | }); |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | function typingStatus({ |
| 583 | socketId, |
no test coverage detected