
Checkpoint
./server.js:13690106/389
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -22,6 +22,8 @@ server.on('upgrade', async function (request, socket, head) { | ... | @@ -22,6 +22,8 @@ server.on('upgrade', async function (request, socket, head) { |
22 | } else { | 22 | } else { |
23 | // Create Node | 23 | // Create Node |
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? | ||
26 | // Works only when passing "server" to the web parameter, no WS/WSS) | ||
25 | gun.server = new WebSocket.Server({ noServer: true}); | 27 | gun.server = new WebSocket.Server({ noServer: true}); |
26 | gun.gun = new Gun({peers:[], ws: { noServer: true } }); | 28 | gun.gun = new Gun({peers:[], ws: { noServer: true } }); |
27 | lru.set(pathname,gun); | 29 | lru.set(pathname,gun); | ... | ... |
-
Please register or sign in to post a comment