diff --git a/backend/public/test_rr_redis.php b/backend/public/test_rr_redis.php new file mode 100644 index 0000000..ba5333e --- /dev/null +++ b/backend/public/test_rr_redis.php @@ -0,0 +1,44 @@ + $i, + 'session_id' => $session['id'] ?? null, + 'session_key' => $session['session_key'] ?? null, + 'name' => $session['name'] ?? null, + 'phone' => $session['phone'] ?? null, + 'status' => $session['status'] ?? null, + ]; +} + +echo json_encode([ + 'status' => 'success', + 'redis_enabled' => Env::get('REDIS_ENABLED', false), + 'company_id' => $companyId, + 'total_connected_sessions' => count($connectedSessions), + 'connected_sessions' => array_map(function($s) { + return [ + 'id' => $s['id'], + 'session_key' => $s['session_key'], + 'name' => $s['name'], + 'status' => $s['status'] + ]; + }, $connectedSessions), + 'round_robin_test_selections' => $selections +], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);