
Checkpoint
./server.js:13690106/53
Showing
2 changed files
with
2 additions
and
2 deletions
1 | {"j":{"ack\u001bname":{"":{":":"Jack",">":1587032540203}},"ill\u001bname":{"":{":":"Jill",">":1587032540204.002}}}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | {"j":{"ack\u001bname":{"":{":":"Jack",">":1587032994032}},"ill\u001bname":{"":{":":"Jill",">":1587032608228.001}}}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -26,7 +26,7 @@ server.on('upgrade', async function (request, socket, head) { | ... | @@ -26,7 +26,7 @@ server.on('upgrade', async function (request, socket, head) { |
26 | // HOW HOW HOW ? IS it even possible to attach the WS to the Gun Object alone? | 26 | // HOW HOW HOW ? IS it even possible to attach the WS to the Gun Object alone? |
27 | // Works only when passing "server" to the web parameter, no WS/WSS) | 27 | // Works only when passing "server" to the web parameter, no WS/WSS) |
28 | gun.server = new WebSocket.Server({ noServer: true}); | 28 | gun.server = new WebSocket.Server({ noServer: true}); |
29 | gun.gun = new Gun({peers:[], ws: { noServer: true, path: pathname, web: gun.server }, web: gun.server }); | 29 | gun.gun = new Gun({peers:[], localStorage: false, ws: { noServer: true, path: pathname, web: gun.server }, web: gun.server }); |
30 | lru.set(pathname,gun); | 30 | lru.set(pathname,gun); |
31 | } | 31 | } |
32 | } | 32 | } | ... | ... |
-
Please register or sign in to post a comment