Pass headers to STOMP receipt callbacks

See gh-28715
This commit is contained in:
Napster
2022-09-12 10:55:12 +01:00
committed by rstoyanchev
parent 4eabe29b9a
commit d42f950a36
4 changed files with 53 additions and 18 deletions
+1 -1
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...
});
----