80c83e19 by Glitch (hello-express)

:surfer::dancer: Checkpoint

./server.js:13690106/2949
1 parent 61c10c5c
......@@ -24,8 +24,8 @@ server.on('upgrade', async function (request, socket, head) {
console.log('Create id',pathname);
// 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: { path: pathname, noServer: true }});
//gun.server = new WebSocket.Server({ noServer: true});
gun.gun = new Gun({peers:[], ws: { noServer: true }, web: server });
gun.server = gun.gun.opt().ws;
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!