module XMPP::Stanza::Parser

Extended Modules

Defined in:

Instance Method Summary

Instance Method Detail

def decode_client(node : XML::Node) #

decode_client decodes all known packets in the client namespace


def decode_component(node : XML::Node) #

decode_component decodes all known packets in the component namespace


def decode_sasl(node : XML::Node) #

decode_sasl decodes a packet related to SASL authentication


def decode_stream(node : XML::Node) #

decode_stream will fully decode a stream packet


def init_stream(node : XML::Node) #

def next_packet(node : XML::Node, xmlns = NS_CLIENT) : Packet #

next_packet scans XML token stream for next complete XMPP stanza. Once the type of stanza has been identified, a structure is created to decode that stanza and returned.