class XMPP::StreamManager

Overview

StreamManager supervises an XMPP client connection. Its role is to handle connection events and apply reconnection strategy.

Defined in:

xmpp/stream_manager.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(client : XMPP::StreamClient, retry_count : Int32 = 5, post_connect : Nil | XMPP::Sender -> _ = nil) #

[View source]

Instance Method Detail

def run : Nil #

run launches the connection of the underlying client or component and wait until disconnect is called, or for the manager to terminate due to an unrecoverable exception


[View source]
def stop #

stop cancels pending operations and terminates existing XMPP client.


[View source]