Swoole+Redis+webSocket实现点对点即时聊天
Swoole+Redis+webSocket实现点对点即时聊天,以下是代码+效果截图:
Server.php:
$server = new swoole_websocket_server("0.0.0.0", 9502);
$server->on('open', function($server, $req) {
echo "connection open: {$req-&g...
原创
2018-08-15 14:48:24 ·
3398 阅读 ·
0 评论