module XMPP::Stanza::Attrs

Overview

Attrs represents the common structure for base XMPP packets.

"Type" Attribute

Common uses of the message stanza in instant messaging applications include: single messages; messages sent in the context of a one-to-one chat session; messages sent in the context of a multi-user chat room; alerts, notifications, or other information to which no reply is expected; and errors. These uses are differentiated via the #type attribute. If included, the #type attribute MUST have one of the following values:

"To" Attribute

An instant messaging client specifies an intended recipient for a message by providing the JID of an entity other than the sender in the #to attribute of the Message stanza. If the message is being sent outside the context of any existing chat session or received message, the value of the #to address SHOULD be of the form "user@domain" rather than of the form "user@domain/resource".

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def attr_hash #

def from : String #

def from=(from : String) #

def id : String #

def id=(id : String) #

def lang : String #

def lang=(lang : String) #

def load_attrs(node : XML::Node) #

def to : String #

def to=(to : String) #

def type : String #

def type=(type : String) #

def xmlns : String #