WebSocket 1006 Error During JMeter Agent Login Simulation

Trying to understand why WebSocket connections drop during agent login simulation.

Environment is Genesys Cloud US1. Using JMeter 5.6 for load testing.

Goal is to validate agent capacity before peak season. Script simulates 100 concurrent agents logging in.

Each thread executes the login sequence. Then it attempts to establish the WebSocket connection for real-time events.

About 40% of connections fail immediately. The browser console or JMeter debug sampler shows error 1006. No clear reason provided.

The API tokens are valid. Login returns 200 OK. But the socket never stabilizes.

Is there a specific limit on WebSocket handshakes per minute? The documentation mentions rate limits for REST APIs. But WebSocket limits are not clear.

I checked the network tab. The initial handshake succeeds. Then the connection closes abruptly.

Has anyone seen this pattern? Is it a server-side timeout? Or a client configuration issue in JMeter?

Need to know how to tune the test. Or if this indicates a real bottleneck in the platform.