injected auth secrets use to handle the authentication
injected service use to handle the chat related operations
injected logger used to handle the logging
request context [headers, body, params, query].
201 Status Created
This handler will create message by applying the following steps in sequence:
Authenticate the request (authenticate)
Create message (chatService.createMessage)
2.1. If the user is authenticated, then mark the message as read (chatService.markMessageRead)
Get message by id and normalize (chatService.getOneMessageAndNormalize)
If socket server is attached, then do the following:
4.1. Get subscriptions (chatService.getSubscriptions)
4.2. Get private chat channels (getPrivateChatChannel)
4.3. Emit message to the channels
500 NBError Internal Server Error
Generated using TypeDoc
Create message handler