利用Workerman基于WebSocket实现web端多人聊天demo: 后端代码: ws.php 前端页面: test1.html test2.html 启动程序: php-cli下 php ws.php