Skip to content

Commit

Permalink
Fix extra duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
d3x0r authored Sep 19, 2017
1 parent 44d6feb commit 0a0621c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0a0621c

Please sign in to comment.