Net::J...Message(3pm)

πŸ’Œ NAME

okay bestie, say hi to Net::Jabber::Loudmouth::Message β€” it's literally a Jabber message ✨


πŸ¦‹ HIERARCHY

the family tree, look at her:

Glib::Boxed
+----Net::Jabber::Loudmouth::Message

so yeah, she inherits from Glib::Boxed πŸ’…


πŸŽ€ METHODS

message = Net::Jabber::Loudmouth::Message->new ($to, $type)

make a fresh new message, no cap 🫢 here's what you hand her:

  • $to (string) β€” who it's going to, duh
  • $type (Net::Jabber::Loudmouth::MessageType) β€” what kind of message it is

message = Net::Jabber::Loudmouth::Message->new_with_sub_type ($to, $type, $sub_type)

same energy but ✨extra✨ β€” this one takes a sub-type too:

  • $to (string)
  • $type (Net::Jabber::Loudmouth::MessageType)
  • $sub_type (Net::Jabber::Loudmouth::MessageSubType)

messagenode = $message->get_node

grab the node, periodt πŸ“

messagesubtype = $message->get_sub_type

get the sub-type back out

messagetype = $message->get_type

and get the type. iconic trio, honestly πŸ’œ


🌈 ENUMS AND FLAGS

enum Net::Jabber::Loudmouth::MessageSubType

all the sub-type glow-ups πŸ’…:

  • 'not-set' / LM_MESSAGE_SUB_TYPE_NOT_SET
  • 'available' / LM_MESSAGE_SUB_TYPE_AVAILABLE
  • 'normal' / LM_MESSAGE_SUB_TYPE_NORMAL
  • 'chat' / LM_MESSAGE_SUB_TYPE_CHAT
  • 'groupchat' / LM_MESSAGE_SUB_TYPE_GROUPCHAT
  • 'headline' / LM_MESSAGE_SUB_TYPE_HEADLINE
  • 'unavailable' / LM_MESSAGE_SUB_TYPE_UNAVAILABLE
  • 'probe' / LM_MESSAGE_SUB_TYPE_PROBE
  • 'subscribe' / LM_MESSAGE_SUB_TYPE_SUBSCRIBE
  • 'unsubscribe' / LM_MESSAGE_SUB_TYPE_UNSUBSCRIBE
  • 'subscribed' / LM_MESSAGE_SUB_TYPE_SUBSCRIBED
  • 'unsubscribed' / LM_MESSAGE_SUB_TYPE_UNSUBSCRIBED
  • 'get' / LM_MESSAGE_SUB_TYPE_GET
  • 'set' / LM_MESSAGE_SUB_TYPE_SET
  • 'result' / LM_MESSAGE_SUB_TYPE_RESULT
  • 'error' / LM_MESSAGE_SUB_TYPE_ERROR

enum Net::Jabber::Loudmouth::MessageType

and the main-character types πŸŽ€:

  • 'message' / LM_MESSAGE_TYPE_MESSAGE
  • 'presence' / LM_MESSAGE_TYPE_PRESENCE
  • 'iq' / LM_MESSAGE_TYPE_IQ
  • 'stream' / LM_MESSAGE_TYPE_STREAM
  • 'stream-error' / LM_MESSAGE_TYPE_STREAM_ERROR
  • 'stream-features' / LM_MESSAGE_TYPE_STREAM_FEATURES
  • 'auth' / LM_MESSAGE_TYPE_AUTH
  • 'challenge' / LM_MESSAGE_TYPE_CHALLENGE
  • 'response' / LM_MESSAGE_TYPE_RESPONSE
  • 'success' / LM_MESSAGE_TYPE_SUCCESS
  • 'failure' / LM_MESSAGE_TYPE_FAILURE
  • 'proceed' / LM_MESSAGE_TYPE_PROCEED
  • 'starttls' / LM_MESSAGE_TYPE_STARTTLS
  • 'unknown' / LM_MESSAGE_TYPE_UNKNOWN

πŸ‘€ SEE ALSO

go read these too, fr fr:

  • Net::Jabber::Loudmouth
  • Glib::Boxed

Copyright (C) 2005 by Florian Ragwitz 🫢

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.


and that's the whole page bestie!! πŸ’– this one shipped with perl v5.42.3, dated 2026-08-20, from the User Contributed Perl Documentation crew, and it lives in section Net::J...Message(3pm) β€” slay, go forth and send messages πŸ¦‹βœ¨

πŸ“¦ where this page comes from