1.demo下载
workerman 聊天demo_微齐天大圣.的博客-CSDN博客
2.修改代码TCP协议
打开文件:/worker/applications/yourapp/start_gateway.php
$gateway = new Gateway("tcp://0.0.0.0:8282");
3.向客户端返回数据
打开文件:/worker/Applications/YourApp/Events.php
4.启动workerman服务
cd workerman目录
php start.php stop
php start.php start
5.发送TCP数据测试
输入IP地址和端口连接