STOMP Heartbeat Issue: Connection Terminates Despite Client Ping-Pongs

STOMP WebSocket connection unexpectedly terminates despite client ping-pongs. How can the server verify heartbeats and adjust Artemis/Spring Boot? Refer to example configuration:

public void initializeBroker(BrokerRegistry reg) {
    int sendGap = 12000;
    int recvGap = 15000;
    reg.definePrefix("/srv")
       .useRelay("/channel1", "/channel2")
       .setCredentials("admin", "admin123")
       .configureHeartbeats(sendGap, recvGap);
}

The observed termination issue is often related to a misalignment between server and client heartbeat configuration. In my experience, ensuring that both server and client agree on the specified intervals is crucial, especially in environments with potential delays. For instance, the gap settings you mentioned for send and receive heartbeats should be carefully matched and verified against network performance metrics. It also helps to check Artemis-specific heartbeat settings and error handling policies because slight deviations or timeout misinterpretation can cause unintended connection interruptions.