rstoyanchev / spring-websocket-portfolio

740 stars 443 forks source link

How to acknowledge message? #68

Closed achmadns closed 8 years ago

achmadns commented 8 years ago

Dear @rstoyanchev , could you please share how to acknowledge a message?

I have set the stomp headers when subscribing.

final StompHeaders headers = new StompHeaders();
headers.setDestination(destination);
headers.setAck("client");
session.subscribe(headers, new StompSessionHandlerAdapter(){});

but when I try to ack the message, there is no method for it on StompSession interface. Is it by design?

Thank you.

achmadns commented 8 years ago

I checked out spring-messaging 4.3.0.RELEASE. It already there but still on not general RELEASE of Spring Boot. Waiting to be finished up.

rstoyanchev commented 8 years ago

Yes it's in 4.3 https://jira.spring.io/browse/SPR-14208.