90bb8761 by Glitch (hello-express)

:closed_umbrella::maple_leaf: Checkpoint

./server.js:13690106/68
1 parent 7914c1a1
1 {"zero1\u001bname":{"":{":":"Jack",">":1587040426899}}}
...\ No newline at end of file ...\ No newline at end of file
1 {"!":{"":1}}
...\ No newline at end of file ...\ No newline at end of file
1 {"zero2\u001bname":{"":{":":"Jill",">":1587040426901}}}
...\ No newline at end of file ...\ No newline at end of file
1 {"!":{"":1}}
...\ No newline at end of file ...\ No newline at end of file
1 {"zero1\u001bname":{"":{":":"Jack",">":1587040426899}}}
...\ No newline at end of file ...\ No newline at end of file
1 {"!":{"":1}}
...\ No newline at end of file ...\ No newline at end of file
1 {"zero1\u001bname":{"":{":":"Jack",">":1587040426899}}}
...\ No newline at end of file ...\ No newline at end of file
1 {"!":{"":1}}
...\ No newline at end of file ...\ No newline at end of file
1 {"zero1\u001bname":{"":{":":"Jack",">":1587040426899}}}
...\ No newline at end of file ...\ No newline at end of file
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
......
1 {"zero":{"2\u001bname":{"":{":":"Jill",">":1587040405007.001}},"1\u001bname":{"":{":":"Jack",">":1587040426899}}}}
...\ No newline at end of file ...\ No newline at end of file
1 {"!":{"":1}}
...\ No newline at end of file ...\ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!