From 0a0621ce025986df92849d5b2df9ea2c907f225a Mon Sep 17 00:00:00 2001 From: Jim B Date: Tue, 19 Sep 2017 05:28:34 -0700 Subject: [PATCH] Fix extra duplicated code --- lib/ws.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/ws.js b/lib/ws.js index 943ce3fcd..bfdab1c83 100644 --- a/lib/ws.js +++ b/lib/ws.js @@ -20,11 +20,6 @@ Gun.on('opt', function mount(ctx){ ws.web = new WebSocket.Server(ws); - ws.server = ws.server || opt.web; - ws.path = ws.path || '/gun'; - - ws.web = new WebSocket.Server(ws); - ws.web.on('connection', function(wire){ wire.upgradeReq = wire.upgradeReq || {}; wire.url = url.parse(wire.upgradeReq.url||'', true);