swoole websocket 简单示例
请确保服务器已安装配置好swoole
1. 服务端 ws.php
<?php
$server = new swoole_websocket_server("0.0.0.0", 9501);
$server->on('open', function (swoole_websocket_server $server, $request) {
echo "server...
原创
2018-09-04 10:42:51 ·
1286 阅读 ·
0 评论