module XMPP::Stanza::Parser

Extended Modules

Defined in:

xmpp/stanza/parser.cr

Instance Method Summary

Instance Method Detail

def decode_client(node : XML::Node) #

decode_client decodes all known packets in the client namespace


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

decode_component decodes all known packets in the component namespace


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

decode_sasl decodes a packet related to SASL authentication


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

decode_stream will fully decode a stream packet


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

[View source]
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.


[View source]