04e5acbe by Glitch (hello-express)

:bicyclist::ledger: Checkpoint

./server.js:13690106/389
1 parent 18936c38
......@@ -22,6 +22,8 @@ server.on('upgrade', async function (request, socket, head) {
} else {
// Create Node
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: { noServer: true } });
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!