Protoco...P::Base(3)

πŸ“¦ version 0.007, in alpine 3.24

🌸 NAME 🌸

Okay so bestie, this is Protocol::XMPP::Base(3) from the User Contributed Perl Documentation β€” manual name folded in right here, no copied header line, periodt. It's the base class for Protocol::XMPP, and yes she's iconic. πŸ’…

✨ SYNOPSIS ✨

No synopsis text on this page, bestie β€” it's literally empty. πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

Also no description prose here. The page goes straight to the methods, which is lowkey a choice, but we respect it. πŸ’–

πŸŽ€ METHODS πŸŽ€

πŸ’« new πŸ’«

Constructor. Stores all parameters on $self, including the top-level stack item as parent. Main character constructor behavior, honestly. πŸ‘‘

πŸ› debug πŸ›

Helper method for displaying a debug message. Only displayed if the debug flag was passed to configure β€” that's the whole vibe check. πŸ™ˆ

πŸ’… _ref_to_xml πŸ’…

Convert an arrayref to an XML fragment.

Input such as the following:

[ 'iq', type => 'set', id => 'xyz', _content => [ [ 'session', _ns => 'xmpp-session' ] ] ]

would be converted to:

<iq type=>'set' id=>'xyz'><session xmlns='...:xmpp-session'/></iq>

Look at that transformation β€” she ate. πŸ”₯

🌈 PROXY METHODS 🌈

The following methods are proxied to the Protocol::XMPP::Stream class via stream. Think of it like the base class handing stuff off to stream, iykyk. 🫢

πŸ” is_loggedin πŸ”

Accessor for the loggedin state β€” will call the appropriate on_(login|logout) event when changing state. Slay, state changes. ✨

✍️ write_xml ✍️

Write XML reference to stream. Straight up. πŸ’Œ

πŸ“ write_text πŸ“

Write XML reference to stream. Yes, bestie, same description β€” I'm not inventing extra lore. πŸ“

πŸ“£ dispatch_event πŸ“£

Pass through an event (on_XXX handler). Go off, event. πŸ”₯

🌊 stream 🌊

Returns the active Protocol::XMPP::Stream object. The main character stream object, obviously. πŸ‘‘

πŸ”’ next_id πŸ”’

Returns the next ID for to use in outgoing messages. (Keeping the original wording exactly, bestie β€” no cap.) πŸ’œ

🫢 AUTHOR 🫢

Tom Molesworth <tom@perlsite.co.uk> β€” the icon behind this page. πŸ’–

πŸ“œ LICENSE πŸ“œ

Copyright Tom Molesworth 2010-2026. Licensed under the same terms as Perl itself. Respect the license, bestie. 🌸


Okay that's the whole page, bestie. It comes from the User Contributed Perl Documentation, perl v5.42.2, dated 2026-02-15, and the footer says Protoco...P::Base(3). Catch you in the group chat. πŸ«ΆπŸ’…βœ¨

πŸ“¦ where this page comes from