命令行测试 WebSocket 使用 wscat 工具可以实现 npm install -g wscat wscat -c ws://your_ip:your_port Was this page helpful? Thanks! You can leave some advices in the comment section below. Thanks! You can leave some advices in the comment section below. Comments