Skip to content

Commit 8bc0159

Browse files
Update README.md
1 parent 134af57 commit 8bc0159

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ import {
3131
global.Buffer = global.Buffer || require('buffer').Buffer
3232
3333
var xmpp = require('reactnative-xmpp');
34-
34+
// Use canonicalHost as the host name on the Jabber server and when you need to connect to any host other than localhost
3535
var conf = {login: 'user2',
3636
password: 'Chelsea@100',
3737
domain: 'localhost',
38-
host: 'localhost'};
38+
host: 'localhost',
39+
canonicalHost: 'localhost'};
3940
var client = new xmpp.Client(conf);
4041
4142

0 commit comments

Comments
 (0)