class XMPP::StreamManager
- XMPP::StreamManager
- Reference
- Object
Overview
StreamManager supervises an XMPP client connection. Its role is to handle connection events and apply reconnection strategy.
Defined in:
xmpp/stream_manager.crConstructors
Instance Method Summary
-
#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
-
#stop
stop cancels pending operations and terminates existing XMPP client.
Constructor Detail
def self.new(client : XMPP::StreamClient, retry_count : Int32 = 5, post_connect : Nil | XMPP::Sender -> _ = nil)
#
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