架设很简单啊,参照官网:https://wiki.swoole.com/wiki/page/397.html

$server = new swoole_websocket_server("0.0.0.0", 9501);$server->on('open', functi[......]

Read more