Interface TransportConnector<T extends ClientConnectionConfiguration>

    • Method Detail

      • connect

        CompletableFuture<Connection> connect​(XmppSession xmppSession,
                                              T configuration,
                                              SessionOpen sessionOpen)
        Establishes a connection using the transport protocol specific configuration.
        Parameters:
        xmppSession - The XMPP session which will be bound to the transport protocol.
        configuration - The connection configuration for the specific transport protocol.
        sessionOpen - The session open element.
        Returns:
        A CompletableFuture which returns an established (connected) connection on completion.