Net::ST...:Version(3)
πΈ NAME πΈ
Net::STOMP::Client::Version β bestie, this is the version support little helper for Net::STOMP::Client. It's the module that handles the whole "which STOMP version are we speaking" negotiation dance π
β¨ SYNOPSIS β¨
use Net::STOMP::Client;
$stomp = Net::STOMP::Client->new(host => "127.0.0.1", port => 61613);
...
# can change the acceptable versions only _before_ connect()
$stomp->accept_version([ "1.1", "1.2" ]);
...
$stomp->connect();
...
# can get the negotiated version only _after_ connect()
printf("using STOMP %s\n", $stomp->version());
okay so notice the ordering bestie β that's the whole plot twist πβ¨ the version list is a before connect() thing, and reading the negotiated version is an after connect() thing. No cap.
π¦ DESCRIPTION π¦
This module is the one doing the STOMP protocol version negotiation. It's used internally by Net::STOMP::Client β so like, if you're not that module, please don't touch it directly? π It said what it said.
π METHODS π
Here's the tea: this module hands the following methods to Net::STOMP::Client π«Ά
accept_version([VALUE])β get/set the list of acceptable STOMP protocol versions, iykyk π The givenVALUEcan be any of these three moods:undefβ meaning all supported versions, the "I'm flexible, I trust the universe" option π- a single version β just the one, main character energy π
- an array reference β for when you want multiple versions on the menu π
version([STRING])β get the negotiated STOMP protocol version. That's the one y'all actually agreed on after the handshake π
β οΈ Real talk:accept_versiononly works its magic beforeconnect(), andversion()only gives you the goods afterconnect(). Timing is everything, bestie π
π SUPPORTED VERSIONS π
Net::STOMP::Client supports these three icons of the STOMP protocol π₯
- 1.0 β see <http://stomp.github.com/stomp-specification-1.0.html>
- 1.1 β see <http://stomp.github.com/stomp-specification-1.1.html>
- 1.2 β see <http://stomp.github.com/stomp-specification-1.2.html>
Literally the whole lineup, slay β¨
π SEE ALSO π
Net::STOMP::Client β the main character this whole module supports π«Ά
π AUTHOR π
Lionel Cons <http://cern.ch/lionel.cons>
Copyright (C) CERN 2010-2017
and that's the whole page, bestie π fr fr β signed off from the perl v5.32.1 era, dated 2019-07-26, living under the Net::ST...:Version(3) header the whole time πβ¨
π¦ 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