准备工作 flutter(客户端) 安装 socket_io_client ^2.0.3+1 Node.js(服务端) 安装 "socket.io": "^4.7.5" 服务端代码 客户端代码 运行结果