open sockets / source IP
forwarded frames / rolling 60s
wss-gateway.mbamps.com
Message behaviour
Open one real socket, then send frames through the Worker. Frame 21 is stopped at the edge and never reaches the VPS.
Frame event stream
Concurrent connection admission
The gateway reserves three origin slots for each Cloudflare-observed source IP. Diagnostic mode currently displays the exact IP used for every accepted socket.
The primary demo socket will be closed before this test. DevTools retains its earlier 101 entry.
GENERIC USE CASE / IN-TUNNEL LOGIN
Stop brute force inside the tunnel
A generic gateway converts an in-band WebSocket command into an internal POST /internal/auth/login. There is no HTTP POST body at Cloudflare after the 101 upgrade, so the Worker parses the WebSocket JSON frame itself.
captchaPassed: true is supplied by the client and proves nothing. The backend must validate a real challenge token server-side. This edge policy is compensating protection, not a replacement.
auth.login command
{
"action": "auth.login",
"username": "demo-user",
"password": "********",
"claimedIp": "detected on connect",
"channel": "demo-web",
"captchaPassed": true,
"deviceId": ""
}