标签:col pre _id nbsp function 对象 websocket sock style
timer.php
<?php //创建websocket服务器对象,监听0.0.0.0:9502端口 $ws = new swoole_server("0.0.0.0", 9503); swoole_timer_tick(2000, function ($timer_id) { echo "执行第一次,\n"; });
启动
# php timer.php
标签:col pre _id nbsp function 对象 websocket sock style
原文地址:https://www.cnblogs.com/wesky/p/9448075.html