I just wanted to do one for fun.
Sources I used:
Upgrade from client
curl -v localhost:8000/chat \
-H "Upgrade: websocket" \
-H "Connection: Upgrade" \
-H "Sec-Websocket-Key: dGhlIHNhbXBsZSBub25jZQ==" \
-H "Sec-WebSocket-Version: 13"