1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 11:38:00 +01:00

setPort accept integer only

changed string to int. setPort function is only accepting integer.
This commit is contained in:
Cem Yabansu 2017-03-27 18:00:38 +03:00 committed by GitHub
parent 08c228ef99
commit 430cfa0ec5

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);