-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
readOnlyManager.getIds()
call to socket.io handlers
This reduces the complexity of commentManager. It also makes future authorization checks easier to implement (because the checks should be performed where the messages arrive, not deep in the abstracted internals). Also: Update the `apiAddComments` and `apiAddCommentReplies` message events to broadcast to both pad IDs.
- Loading branch information
Showing
2 changed files
with
89 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.