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

Function fileAddedInsideComment

api/server/sockets.ts:252–271  ·  view source on GitHub ↗
({
  socketId,
  commentId,
  discussionId,
  addedFile,
}: {
  socketId?: string;
  commentId: string;
  discussionId: string;
  addedFile: any;
})

Source from the content-addressed store, hash-verified

250}
251
252function fileAddedInsideComment({
253 socketId,
254 commentId,
255 discussionId,
256 addedFile,
257}: {
258 socketId?: string;
259 commentId: string;
260 discussionId: string;
261 addedFile: any;
262}) {
263 const roomName = `discussion-${discussionId}`;
264
265 const socket = getSocket(socketId);
266 if (socket) {
267 socket
268 .to(roomName)
269 .emit('commentEvent', { actionType: 'addedFileInsideComment', commentId, addedFile });
270 }
271}
272
273function fileDeletedInsideComment({
274 socketId,

Callers 1

team-member.tsFile · 0.90

Calls 1

getSocketFunction · 0.85

Tested by

no test coverage detected