MCPcopy Create free account
hub / github.com/async-labs/async / typingStatus

Function typingStatus

api/server/sockets.ts:582–600  ·  view source on GitHub ↗
({
  socketId,
  status,
  chatId,
  userId,
}: {
  socketId?: string;
  status: boolean;
  chatId: string;
  userId: string;
})

Source from the content-addressed store, hash-verified

580}
581
582function typingStatus({
583 socketId,
584 status,
585 chatId,
586 userId,
587}: {
588 socketId?: string;
589 status: boolean;
590 chatId: string;
591 userId: string;
592}) {
593 const roomName = `chat-${chatId}`;
594
595 const socket = getSocket(socketId);
596
597 if (socket) {
598 socket.to(roomName).emit('typingStatus', { actionType: 'edited', status, userId });
599 }
600}
601
602function teamDeleted({
603 socketId,

Callers 1

team-member.tsFile · 0.90

Calls 1

getSocketFunction · 0.85

Tested by

no test coverage detected