Skip to content

Commit

Permalink
format server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Feb 3, 2014
1 parent 2ee93b0 commit 3d06c8b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions lib/s2s/session/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,20 @@ var debug = require('debug')('server')
* (3) dialbackVerified(from, to, id, isValid)
* (4) dialbackResult(from, to, isValid)
*/
function Server(opts) {
debug(opts)
Connection.call(this, opts)
function Server(opts) {
debug(opts)
Connection.call(this, opts)

this.xmlns[''] = NS_SERVER
this.xmlns.db = NS_DIALBACK
this.xmppVersion = '1.0'
this.xmlns[''] = NS_SERVER
this.xmlns.db = NS_DIALBACK
this.xmppVersion = '1.0'

}
}
util.inherits(Server, Connection)

Server.prototype.NS_SERVER = NS_SERVER;
Server.prototype.NS_DIALBACK = NS_DIALBACK;

// TODO not secure
Server.prototype.generateId = function () {
var r = new Buffer(16)
for (var i = 0; i < r.length; i++) {
Expand Down Expand Up @@ -89,5 +88,4 @@ Server.prototype.handleDialback = function (stanza) {
}
}


module.exports = Server;

0 comments on commit 3d06c8b

Please sign in to comment.