Mercurial > psgxs
comparison psgxs.js @ 45:8b20f2efb939
Add an option to choose the host and port of the connection.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 08 Mar 2011 00:25:17 +0100 |
parents | 3e0ca96d2dce |
children | 3126f8d6a5e3 |
comparison
equal
deleted
inserted
replaced
44:3e0ca96d2dce | 45:8b20f2efb939 |
---|---|
29 var makeError = errors.makeError; | 29 var makeError = errors.makeError; |
30 var fdsq = require('./fdsq'); | 30 var fdsq = require('./fdsq'); |
31 var toBareJID = fdsq.toBareJID; | 31 var toBareJID = fdsq.toBareJID; |
32 var config = require('./configuration'); | 32 var config = require('./configuration'); |
33 var forms = require('./forms'); | 33 var forms = require('./forms'); |
34 var conn = new xmpp.Connection(); | 34 var conn = new xmpp.Connection(config.host, config.port); |
35 | 35 |
36 var notifs = require('./notifs'); | 36 var notifs = require('./notifs'); |
37 notifs.setConnection(conn); | 37 notifs.setConnection(conn); |
38 | 38 |
39 var modules = require('./modules'); | 39 var modules = require('./modules'); |