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

Function fileAddedInsideMessage

api/server/sockets.ts:456–475  ·  view source on GitHub ↗
({
  socketId,
  messageId,
  chatId,
  addedFile,
}: {
  socketId?: string;
  messageId: string;
  chatId: string;
  addedFile: any;
})

Source from the content-addressed store, hash-verified

454}
455
456function fileAddedInsideMessage({
457 socketId,
458 messageId,
459 chatId,
460 addedFile,
461}: {
462 socketId?: string;
463 messageId: string;
464 chatId: string;
465 addedFile: any;
466}) {
467 const roomName = `chat-${chatId}`;
468
469 const socket = getSocket(socketId);
470 if (socket) {
471 socket
472 .to(roomName)
473 .emit('messageEvent', { actionType: 'addedFileInsideMessage', messageId, addedFile });
474 }
475}
476
477function fileDeletedInsideMessage({
478 socketId,

Callers 1

team-member.tsFile · 0.90

Calls 1

getSocketFunction · 0.85

Tested by

no test coverage detected