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:

xmpp/stanza/packet.cr

Instance Method Summary

Instance Method Detail

def attr_hash #

[View source]
def from : String #

[View source]
def from=(from : String) #

[View source]
def id : String #

[View source]
def id=(id : String) #

[View source]
def lang : String #

[View source]
def lang=(lang : String) #

[View source]
def load_attrs(node : XML::Node) #

[View source]
def to : String #

[View source]
def to=(to : String) #

[View source]
def type : String #

[View source]
def type=(type : String) #

[View source]
def xmlns : String #

[View source]