class
XMPP::StreamManager(T)
- XMPP::StreamManager(T)
- 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
- #metrics : Metrics
- #reconnect_policy : ReconnectPolicy
-
#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 : T, retry_count : Int32 = 5, post_connect : Nil | XMPP::Sender -> _ = nil, reconnect_policy : XMPP::ReconnectPolicy = ReconnectPolicy.new)
#
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