class

XMPP::StreamManager(T)

Inherits Reference / Object

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

Constructors

new(client : T, retry_count : Int32 = 5, post_connect : Nil | XMPP::Sender -> _ = nil, reconnect_policy : XMPP::ReconnectPolicy = ReconnectPolicy.new)
Source

Instance methods

metrics
Source
reconnect_policy
Source
run

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

Source
stop

stop cancels pending operations and terminates existing XMPP client.

Source