JavaScript

Run Your Application

Open the index.html file in two browser tabs. You might want to position these side-by-side so that you can see both users' view of the chat simultaneously.

Note: If you receive a permissions error, either use two different browsers, or open one of your tabs as an incognito/private tab.

First, log in to the application in both browser tabs, using Alice and Bob respectively.

Then, start sending messages from one user to the other. Messages received from the other user should appear in red, the messages you send should appear in black.