remove whitespace

This commit is contained in:
Michelle Bu 2013-06-15 18:31:44 -07:00
parent eb0ddfcc6b
commit c0130c418b

View File

@ -40,7 +40,6 @@ function PeerServer(options) {
this._ips = {}; this._ips = {};
this._setCleanupIntervals(); this._setCleanupIntervals();
}; };
util.inherits(PeerServer, EventEmitter); util.inherits(PeerServer, EventEmitter);
@ -53,7 +52,6 @@ PeerServer.prototype._initializeWSS = function() {
// Create WebSocket server as well. // Create WebSocket server as well.
this._wss = new WebSocketServer({ path: '/peerjs', server: this._httpServer }); this._wss = new WebSocketServer({ path: '/peerjs', server: this._httpServer });
this._wss.on('connection', function(socket) { this._wss.on('connection', function(socket) {
var query = url.parse(socket.upgradeReq.url, true).query; var query = url.parse(socket.upgradeReq.url, true).query;
var id = query.id; var id = query.id;
@ -88,10 +86,8 @@ PeerServer.prototype._initializeWSS = function() {
PeerServer.prototype._configureWS = function(socket, key, id, token) { PeerServer.prototype._configureWS = function(socket, key, id, token) {
var self = this; var self = this;
var client = this._clients[key][id]; var client = this._clients[key][id];
if (token === client.token) { if (token === client.token) {
// res 'close' event will delete client.res for us // res 'close' event will delete client.res for us
client.socket = socket; client.socket = socket;
@ -216,7 +212,6 @@ PeerServer.prototype._initializeHTTP = function() {
return next(); return next();
}); });
var handle = function(req, res, next) { var handle = function(req, res, next) {
var key = req.params.key; var key = req.params.key;
var id = req.params.id; var id = req.params.id;
@ -259,7 +254,6 @@ PeerServer.prototype._initializeHTTP = function() {
// Listen on user-specified port. // Listen on user-specified port.
this._httpServer.listen(this._options.port); this._httpServer.listen(this._options.port);
}; };
/** Saves a streaming response and takes care of timeouts and headers. */ /** Saves a streaming response and takes care of timeouts and headers. */