nielsutrecht / spring-boot-websocket-client

Demonstrates a Spring Boot Websocket + Stomp service with both a JavaScript and Java client
MIT License
99 stars 58 forks source link

Automatic Reconnects #2

Open shartte opened 7 years ago

shartte commented 7 years ago

It's good to see I wasn't the only one having some real issues with Spring's STOMP client.

Have you been able to figure out how to do automatic reconnects?

I had hoped Spring would have something for this, since it's a mess to re-implement this every time I need a persistent connection to my server. But since the entire JMS based Spring "magic" (MessageListenerContainer et al) is incompatible with STOMP, I fear I'll have to do it.

Unless ofcourse, you already found an easier way :)

zguesmi commented 4 years ago

@shartte @nielsutrecht do you have any idea how to do this properly? I implemented my own retry mechanism by overriding the handleTransportError method, but it does not seem to be the right way of doing it.