Detecting disconnects using Spring messaging (websockets / STOMP)

767 views Asked by At

We're using spring-messaging websocket with STOMP. Now we've defined multiple @SubscribeMapping methods, but is there also some sort of callback that gets fired when a client application disconnects from the socket?

We got a list of connect clients and some additional properties, like status. Status field needs to be updated when the client application disconnects.

Any suggestions on how to achieve this in Spring? I've tried implementing ApplicationListener however, there's no usefull information in the OnSessionDisconnect object.

0

There are 0 answers