服务器在一段时间后关闭客户端的连接,客户端在尝试发送消息后自动断开连接:
newmsg = await websocket.recv()
python websocket
python ×1
websocket ×1