Net::ST...:Version(3)

πŸ“¦ version 2.3, in epel 9

🌸 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 given VALUE can 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_version only works its magic before connect(), and version() only gives you the goods after connect(). Timing is everything, bestie 😭

πŸ‘‘ SUPPORTED VERSIONS πŸ‘‘

Net::STOMP::Client supports these three icons of the STOMP protocol πŸ”₯

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