ee387a3a by Glitch (hello-express)

:waning_gibbous_moon::ocean: Checkpoint

./server.js:13690106/111
1 parent 80c83e19
......@@ -25,8 +25,7 @@ server.on('upgrade', async function (request, socket, head) {
// HOW HOW HOW ? IS it even possible to attach the WS to the Gun Object alone?
// Works only when passing "server" to the web parameter, no WS/WSS)
//gun.server = new WebSocket.Server({ noServer: true});
gun.gun = new Gun({peers:[], ws: { noServer: true }, web: server });
gun.server = gun.gun.opt().ws;
gun.gun = new Gun({peers:[], ws: { noServer: true }, web: gun.server });
lru.set(pathname,gun);
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!