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

Function commentEdited

api/server/sockets.ts:226–233  ·  view source on GitHub ↗
({ socketId, comment }: { socketId?: string; comment: ICommentDocument })

Source from the content-addressed store, hash-verified

224}
225
226function commentEdited({ socketId, comment }: { socketId?: string; comment: ICommentDocument }) {
227 const roomName = `discussion-${comment.discussionId}`;
228
229 const socket = getSocket(socketId);
230 if (socket) {
231 socket.to(roomName).emit('commentEvent', { actionType: 'edited', comment });
232 }
233}
234
235function commentDeleted({
236 socketId,

Callers 1

team-member.tsFile · 0.90

Calls 1

getSocketFunction · 0.85

Tested by

no test coverage detected