4eb42662 by Jabis Sevón

extra gun.server

1 parent a20330fc
...@@ -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;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!