module XMPP::StreamManagement

Overview

Stream Management (XEP-0198) support module Handles outbound stanza tracking and automatic resend on resume

Direct including types

Defined in:

xmpp/stream_management.cr

Constant Summary

MAX_QUEUE_SIZE = 100

Maximum number of unacknowledged stanzas to queue

Instance Method Summary

Instance Method Detail

def disable_sm_tracking #

Disable stream management tracking


[View source]
def enable_sm_tracking #

Enable stream management tracking


[View source]
def process_sm_ack(h : UInt32) #

Process acknowledgement from server


[View source]
def resend_unacked_stanzas #

Resend unacknowledged stanzas after resume


[View source]
def send_with_sm(stanza : Stanza::Packet) #

Send a stanza with stream management tracking


[View source]
def send_with_sm(xml : String) #

Send a stanza string with stream management tracking


[View source]
def sm_enabled? : Bool #

Check if stream management is enabled


[View source]