Generate a message in cam place (/:roomId/message) [POST request]
A factor to notice we have found userIds, kind comes from req.body while userId this is certainly becoming aliased as chatInitiatorId is coming from req by way of all of our decode middleware.
Should you decide remember, we connected app.use(“/room”, decode, chatRoomRouter); inside our server/index.js file.