WebSocket server implementation in Rust I just wanted to do one for fun. Sources I used: Mozilla - Writing WebSocket servers WebSocket Protocol RFC Rust Book Hyper testing curls Upgrade from client curl -v localhost:8000/chat \ -H "Upgrade: websocket" \ -H "Connection: Upgrade" \ -H "Sec-Websocket-Key: dGhlIHNhbXBsZSBub25jZQ==" \ -H "Sec-WebSocket-Version: 13"