extra gun.server
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -59,7 +59,7 @@ server.on("upgrade", async function(request, socket, head) { | ... | @@ -59,7 +59,7 @@ server.on("upgrade", async function(request, socket, head) { |
59 | // Create Node | 59 | // Create Node |
60 | if (debug) console.log("Create id", pathname); | 60 | if (debug) console.log("Create id", pathname); |
61 | // NOTE: Only works with lib/ws.js shim allowing a predefined WS as ws.web parameter in Gun constructor | 61 | // NOTE: Only works with lib/ws.js shim allowing a predefined WS as ws.web parameter in Gun constructor |
62 | gun.server = new WebSocket.Server({ noServer: true, path: pathname }); | 62 | //gun.server = new WebSocket.Server({ noServer: true, path: pathname }); |
63 | if (debug) console.log("set peer", request.headers.host + pathname); | 63 | if (debug) console.log("set peer", request.headers.host + pathname); |
64 | if(sig) { | 64 | if(sig) { |
65 | sigs[pathname]=sig; | 65 | sigs[pathname]=sig; | ... | ... |
-
Please register or sign in to post a comment