AddCommentEvent
typedef
Fired whenever a comment is added.
The event name includes channelId
so it is possible to listen only
on changes happening in the specified channel.
It is also possible to listen to events from the given thread ID by appending :[threadId]
part to the event name
const channelId = 'foo';
const threadId = '1234';
commentsRepository.on( `addComment:${ channelId }:${ threadId }`, ( evt, data ) => {
console.log( evt, data );
} );