Stream Endpoint Comparison Test

Tests three paths to isolate exactly where the "Connecting..." issue is. Log in to /trader/ first.

⚠ Delete this file from the server when done.

Test 1: Direct (debug-stream.php)

Bypasses .htaccess, api/index.php, CORS headers. Same as the working diagnostic.

Test 2: Real API endpoint

Goes through .htaccess → api/index.php → setCorsHeaders() → router → TraderBrokerController::stream()

Test 3: SharedWorker → Real API

Tests the EXACT production path: SharedWorker opens EventSource → /api/trader/broker-connection/stream