Then it will call the Notify() method to add the new user to the dictionary and notify other users that someone has joined the chat room.
The next function updates the message logs, available users and the online user’s panel when someone joins the room.
You might be wondering why we haven’t included a reference to the j Query script in the code above.
The reason for this is that when you created the Template, the engine automatically added a reference to the j Query script within your _Layout.cshml before the closing tag of the element and automatically bundled it for you for page performance.
The Send() method broadcasts the message to the users by passing the name and the message as the parameters.