
Checkpoint
./server.js:13690106/68
Showing
14 changed files
with
15 additions
and
3 deletions
1jymo/!
0 → 100644
1 | {"zero1\u001bname":{"":{":":"Jack",">":1587040426899}}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
39n99/!
0 → 100644
1 | {"zero2\u001bname":{"":{":":"Jill",">":1587040426901}}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
8o3r9g/!
0 → 100644
1 | {"zero1\u001bname":{"":{":":"Jack",">":1587040426899}}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
8o3r9g/%1C
0 → 100644
1 | {"!":{"":1}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
ayx3x7/!
0 → 100644
1 | {"zero1\u001bname":{"":{":":"Jack",">":1587040426899}}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
ayx3x7/%1C
0 → 100644
1 | {"!":{"":1}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
gnkysn/!
0 → 100644
1 | {"zero1\u001bname":{"":{":":"Jack",">":1587040426899}}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
gnkysn/%1C
0 → 100644
1 | {"!":{"":1}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | {"j":{"ack\u001bname":{"":{":":"Jack",">":1587037784462}},"ill\u001bname":{"":{":":"Jill",">":1587037784464.001}}},"zero":{"1\u001bname":{"":{":":"Jack",">":1587039735128}},"2\u001bname":{"":{":":"Jill",">":1587039735132.001}}}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | {"j":{"ack\u001bname":{"":{":":"Jack",">":1587037784462}},"ill\u001bname":{"":{":":"Jill",">":1587037784464.001}}},"zero":{"1\u001bname":{"":{":":"Jack",">":1587040222866}},"2\u001bname":{"":{":":"Jill",">":1587040222868.001}}}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -29,7 +29,7 @@ server.on('upgrade', async function (request, socket, head) { | ... | @@ -29,7 +29,7 @@ server.on('upgrade', async function (request, socket, head) { |
29 | gun.gun = new Gun({ | 29 | gun.gun = new Gun({ |
30 | peers:[], // should we use self as peer? | 30 | peers:[], // should we use self as peer? |
31 | localStorage: false, | 31 | localStorage: false, |
32 | file: false, | 32 | file: Math.random().toString(36).substring(7), |
33 | ws: { noServer: true, path: pathname, web: gun.server }, | 33 | ws: { noServer: true, path: pathname, web: gun.server }, |
34 | web: gun.server | 34 | web: gun.server |
35 | }); | 35 | }); |
... | @@ -42,7 +42,7 @@ server.on('upgrade', async function (request, socket, head) { | ... | @@ -42,7 +42,7 @@ server.on('upgrade', async function (request, socket, head) { |
42 | console.log('handle connection...'); | 42 | console.log('handle connection...'); |
43 | //ws.emit('connection', socket); | 43 | //ws.emit('connection', socket); |
44 | gun.server.handleUpgrade(request, socket, head, function (ws) { | 44 | gun.server.handleUpgrade(request, socket, head, function (ws) { |
45 | console.log('connecting to gun.. ', gun.gun.opt().opt ) | 45 | console.log('connecting to gun.. ', gun.gun.opt()._.opt.ws.path ) |
46 | gun.server.emit('connection', ws, request); | 46 | gun.server.emit('connection', ws, request); |
47 | }); | 47 | }); |
48 | 48 | ... | ... |
t1n1uj/!
0 → 100644
1 | {"zero":{"2\u001bname":{"":{":":"Jill",">":1587040405007.001}},"1\u001bname":{"":{":":"Jack",">":1587040426899}}}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
t1n1uj/%1C
0 → 100644
1 | {"!":{"":1}} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment