This commit is contained in:
Mark Nadal 2020-04-22 14:31:54 -07:00
commit 29d596baf7

View File

@ -19,7 +19,7 @@ Gun.on('opt', function mount(ctx){
ws.server = ws.server || opt.web;
ws.path = ws.path || '/gun';
ws.web = new WebSocket.Server(ws);
if (!ws.web) ws.web = new WebSocket.Server(ws);
ws.web.on('connection', function(wire){
wire.upgradeReq = wire.upgradeReq || {};