concept user name in category node

appears as: user names, user name, user name
Get Programming with Node.js

This is an excerpt from Manning's book Get Programming with Node.js.

You’ve implemented the logic to associate messages with users and distinguish those messages on the view. This chat still seems to lack a few points, however. Although the logged-in user can identify their own messages, they don’t know the identity of the other users. In the next section, you add user names to the chat messages.

Listing 31.8. Displaying the user name in the chat in recipeApp.js
$("#chat").prepend($("<li>").html(`
<strong class="message ${getCurrentUserClass(
 message.user )}">
${message.userName}
</strong>: ${message.content}            #1
`));
Figure 31.3. Showing user names with two sockets