
Checkpoint
./server.js:13690106/82
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -22,7 +22,7 @@ server.on('upgrade', async function (request, socket, head) { | ... | @@ -22,7 +22,7 @@ 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 | gun = await Gun({peers:[], ws: { noServer: true}}); | 25 | gun = await Gun({peers:[], ws: { path: pathname}, web: new WebSocket.Server({ noServer: true})}); |
26 | lru.set(pathname,gun); | 26 | lru.set(pathname,gun); |
27 | } | 27 | } |
28 | } | 28 | } | ... | ... |
-
Please register or sign in to post a comment