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) { ...@@ -24,8 +24,8 @@ server.on('upgrade', async function (request, socket, head) {
24 console.log('Create id',pathname); 24 console.log('Create id',pathname);
25 // HOW HOW HOW ? IS it even possible to attach the WS to the Gun Object alone? 25 // HOW HOW HOW ? IS it even possible to attach the WS to the Gun Object alone?
26 // Works only when passing "server" to the web parameter, no WS/WSS) 26 // Works only when passing "server" to the web parameter, no WS/WSS)
27 // gun.server = new WebSocket.Server({ noServer: true}); 27 //gun.server = new WebSocket.Server({ noServer: true});
28 gun.gun = new Gun({peers:[], ws: { path: pathname, noServer: true }}); 28 gun.gun = new Gun({peers:[], ws: { noServer: true }, web: server });
29 gun.server = gun.gun.opt().ws; 29 gun.server = gun.gun.opt().ws;
30 lru.set(pathname,gun); 30 lru.set(pathname,gun);
31 } 31 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!