Trying to understand why our WebSocket connections are dropping with code 1006 (Abnormal Closure) when we ramp up concurrent digital sessions in Genesys Cloud. We are running a load test using JMeter 5.6.2 from the ap-southeast-1 region to simulate peak traffic for our messaging channel. The setup involves establishing persistent WebSocket connections to wss://webchat-{orgId}.mypurecloud.com/webchat/v1.
The issue starts appearing when we push beyond 150 concurrent active sessions. Below this threshold, the connections remain stable for the full test duration. However, once we hit 155+ threads, we see a spike in 1006 errors after approximately 45 seconds of inactivity or low-frequency message exchange. The server side does not send a proper close frame; the client simply loses the connection unexpectedly.
We are using the standard WebChat SDK configuration but driving it through custom JMeter WebSocket samplers to bypass browser limitations. The keep-alive ping interval is set to 30 seconds as per best practices. We have verified that the API rate limits for the initial handshake (/api/v2/conversations/webchat) are not being exceeded, as we are well within the 200 req/min cap. The problem seems specific to the persistent connection lifecycle rather than the initial establishment.
Checking the network logs, the TCP connection appears to drop from the server side without a prior HTTP 429 or 401 response. We suspect this might be related to idle timeout handling on the gateway layer when under heavy load, but the documentation is vague on exact timeout values under stress. Genesys Docs on WebChat Limits mentions general capacity but not specific WebSocket stability thresholds.
Has anyone encountered similar instability with WebSocket 1006 errors during high-concurrency messaging tests? Are there specific headers or payload structures we should adjust in the JMeter sampler to maintain connection stability? We are trying to determine if this is a client-side configuration issue or a platform-side resource exhaustion behavior.