Net::ST...:Receipt(3)
okay bestie, welcome to the Net::ST...:Receipt(3) page β yes, it's User Contributed Perl Documentation, and it's here to explain Net::STOMP::Client::Receipt with main-character energy πβ¨
πΈ NAME πΈ
Net::STOMP::Client::Receipt - Receipt support for Net::STOMP::Client. periodt π
β¨ SYNOPSIS β¨
like, here's the whole group-chat demo, fr fr:
use Net::STOMP::Client;
$stomp = Net::STOMP::Client->new(host => "127.0.0.1", port => 61613);
...
# send two messages with receipts
$stomp->send(
destination => "/queue/test1",
body => "message 1",
receipt => $stomp->uuid(),
);
$stomp->send(
destination => "/queue/test2",
body => "message 2",
receipt => $stomp->uuid(),
);
# wait for both acknowledgments to come back within ten seconds
$stomp->wait_for_receipts(timeout => 10);
die("Not all receipts received!\n") if $stomp->receipts();
π DESCRIPTION π
This module eases receipts handling. It is used internally by Net::STOMP::Client and should not be directly used elsewhere.
bestie, lowkey listen: do not use this directly elsewhere β it's internal to Net::STOMP::Client, no cap π«Ά
Each time a client frame is sent, its receipt header (if supplied) is remembered.
Each time a RECEIPT frame is received from the server, the corresponding receipt is ticked off. slay β
The receipts() method can be used to get the list of outstanding receipts.
The wait_for_receipts() method can be used to wait for all missing receipts.
π METHODS π
This module provides the following methods to Net::STOMP::Client:
receipts()β get the list of not-yet-received receipts. it's giving who's still on read? energy πwait_for_receipts([OPTIONS])β wait for all receipts to be received, usingwait_for_frames()underneath; take the same options aswait_for_frames(), except"callback"which is overridden. iconic behavior, honestly π
π¦ SEE ALSO π¦
Net::STOMP::Client.
π AUTHOR π
Lionel Cons <http://cern.ch/lionel.cons>
Copyright (C) CERN 2010-2017
mwah π this page is source/version perl v5.32.1, dated 2019-07-26, and the footer calls it Net::ST...:Receipt(3). periodt π
π¦ where this page comes from
- epel 9: perl-Net-STOMP-Client 2.3-10.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms