慕尼黑5688855
echo "server: handshake success with fd{$request->fd}\n"; $_SESSION['group'][$request->fd]=$request->fd; });$server->on('message', function (swoole_websocket_server $server, $frame) { echo "receive from {$frame->fd}:{$frame->data},opcode:{$frame->opcode},fin:{$frame->finish}\n"; $arr=array_unique($_SESSION['group']); $data=json_decode($frame->data,true); if (is_array($arr)){ foreach ($arr as $key=>$row){ $server->push($row, json_encode(array('name'=>$data['name'],'type'=>$data['type'],'info'=>$data['info']))); } }else{