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

Function commentDeleted

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

Source from the content-addressed store, hash-verified

233}
234
235function commentDeleted({
236 socketId,
237 commentId,
238 discussionId,
239}: {
240 socketId?: string;
241 commentId: string;
242 discussionId: string;
243}) {
244 const roomName = `discussion-${discussionId}`;
245
246 const socket = getSocket(socketId);
247 if (socket) {
248 socket.to(roomName).emit('commentEvent', { actionType: 'deleted', commentId });
249 }
250}
251
252function fileAddedInsideComment({
253 socketId,

Callers 1

team-member.tsFile · 0.90

Calls 1

getSocketFunction · 0.85

Tested by

no test coverage detected