1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-26 14:17:57 +01:00

Merge pull request #120 from cemyabansu/patch-1

Documentation fix: setPort() accepts int not String
This commit is contained in:
Florian Schmaus 2017-03-30 10:43:25 +02:00 committed by GitHub
commit c8e7c4804b

View file

@ -55,7 +55,7 @@ XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()
.setUsernameAndPassword("username", "password")
.setXmppDomain("jabber.org")
.setHost("earl.jabber.org")
.setPort("8222")
.setPort(8222)
.build();
AbstractXMPPConnection conn2 = **new** XMPPTCPConnection(config);