Pass headers to STOMP receipt callbacks

See gh-28715
This commit is contained in:
Napster
2022-06-27 20:50:48 +02:00
committed by rstoyanchev
parent 4eabe29b9a
commit d42f950a36
4 changed files with 53 additions and 18 deletions

View File

@@ -1347,7 +1347,7 @@ receipt if the server supports it (simple broker does not). For example, with th
headers.setDestination("/topic/...");
headers.setReceipt("r1");
FrameHandler handler = ...;
stompSession.subscribe(headers, handler).addReceiptTask(() -> {
stompSession.subscribe(headers, handler).addReceiptTask(receiptHeaders -> {
// Subscription ready...
});
----