How do we set a custom port?
Can't see this in the docs either.
Added by Andrzej Wójcik over 2 years ago
By default TigaseSwift library uses DNS resolution for domain name which is part of user JID. During this resolution it looks for DNS SRV record for domain, ie. in case of JID email@example.com TigaseSwift library looks for DNS SRV records for _xmpp-client._tcp.example.com. If it finds SRV records then it uses for connection port listed in this SRV records. If there is no SRV records then TigaseSwift uses plain DNS resolution (looks for A records) and uses default port assigned to XMPP client to server connections which is 5222.
Currently there is no other way to tell TigaseSwift which port to connect to. If there is a needed then I can work on feature which will allow you to pass port to which TigaseSwift should connect to.