Currently, the session and server IDs only get generated once - when the StompConfig is created. This can lead to the following issue:
Connect to SockJS Server
End connection without properly sending the DISCONNECT command (connection timing out or when #92 happens)
Initiate connection again
Our SockJS implementation (Spring Boot) then ignores the connect frame, as it thinks that the client is still connected. This leads to the CONNECTED frame not being sent and thus StompConfig#onConnect() not being called. This can be an issue for subscribing to topics if onConnect has never been called so far.
Log output from our Spring Boot backend:
2023-09-07T14:33:41.561Z WARN 1 --- [boundChannel-64] o.s.m.s.b.SimpleBrokerMessageHandler : Ignoring CONNECT in session kd43jkqq. Already connected.
Currently, the session and server IDs only get generated once - when the
StompConfig
is created. This can lead to the following issue:Our SockJS implementation (Spring Boot) then ignores the connect frame, as it thinks that the client is still connected. This leads to the
CONNECTED
frame not being sent and thusStompConfig#onConnect()
not being called. This can be an issue for subscribing to topics ifonConnect
has never been called so far.Log output from our Spring Boot backend:
2023-09-07T14:33:41.561Z WARN 1 --- [boundChannel-64] o.s.m.s.b.SimpleBrokerMessageHandler : Ignoring CONNECT in session kd43jkqq. Already connected.