Chapter 2. Basics

Table of Contents

Create XMPP client instance
Register required modules
Register additional modules you need
Provide credentials needed for authentication
Register for connection related events
Login
Disconnect
Sending custom stanza
Sending stanza without waiting for response
Sending stanza and waiting for response (closures)
Sending stanza and waiting for response (closure)
Sending stanza and waiting for response (AsyncCallback)

Create XMPP client instance

To use TigaseSwift library you need to create instance of XMPPClient class which is implementation of XMPP client.

var client = XMPPClient();