swoole websocket 例子

服务端用php命令行运行服务端代码:<?php $server = new swoole_websocket_server("0.0.0.0", 9501); $server->on('open', function (swoole_websocket_server $server, $request) { echo "...