研究了一天mod_proxy_wstunnel也没明白。而且workerman是php运行的,跟apache或者nginx应该没什么联系吧,请解惑!谢谢...
<?php use Workerman\Worker; require_once './Workerman/Autoloader.php'; $ws_worker = new Worker("websocket://0.0.0.0:1100"); $ws_worker->count = 1; // 当收到客户端发来的数据后返回$data给客户端 $ws...