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