python3 websocket 通信(聊天室?)

一. 客户端服务端进行握手 1.客户端向服务端发送握手包 GET ws://localhost:8000/ HTTP/1.1 Host: localhost:8000 Connection: Upgrade Pragma: no-cache Cache-Control: no-cache Upgrade: websocket Origin: http://localhost:63342 Sec-WebSocket-Version: 13 Accept-Encoding: gzip, deflate, sdch, br Accept-L...