Simple chat example for web dev class.
- add nicknames
- save nicknames on client side (localStorage)
- reconnect when WebSocket connection is broken
- add chat history
- highlight messages sent by current user
- fix time issues
Allows experimenting with XSS attack:
<span onmouseover="alert('XSS testing!')">Hello all!</span>
<img src='x' onerror='alert(1)' alt="">
Task: steal cookies and localStorage values from other chat participants.