Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jabis Sev贸n
/
gun-multiserver
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d255a941
authored
2020-04-16 10:35:17 +0000
by
Glitch (hello-express)
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Checkpoint
./server.js:13690106/53
1 parent
acbd873b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
radata/!
server.js
radata/!
View file @
d255a94
{"j":{"ack\u001bname":{"":{":":"Jack",">":1587032540203}},"ill\u001bname":{"":{":":"Jill",">":1587032540204.002}}}}
\ No newline at end of file
{"j":{"ack\u001bname":{"":{":":"Jack",">":1587032994032}},"ill\u001bname":{"":{":":"Jill",">":1587032608228.001}}}}
\ No newline at end of file
...
...
server.js
View file @
d255a94
...
...
@@ -26,7 +26,7 @@ server.on('upgrade', async function (request, socket, head) {
// HOW HOW HOW ? IS it even possible to attach the WS to the Gun Object alone?
// Works only when passing "server" to the web parameter, no WS/WSS)
gun
.
server
=
new
WebSocket
.
Server
({
noServer
:
true
});
gun
.
gun
=
new
Gun
({
peers
:[],
ws
:
{
noServer
:
true
,
path
:
pathname
,
web
:
gun
.
server
},
web
:
gun
.
server
});
gun
.
gun
=
new
Gun
({
peers
:[],
localStorage
:
false
,
ws
:
{
noServer
:
true
,
path
:
pathname
,
web
:
gun
.
server
},
web
:
gun
.
server
});
lru
.
set
(
pathname
,
gun
);
}
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment