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
d562fbbc
authored
2020-04-30 13:32:47 +0200
by
Lorenzo Mangani
Committed by
GitHub
2020-04-30 13:32:47 +0200
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update server.js
1 parent
c2048d7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
server.js
server.js
View file @
d562fbb
...
...
@@ -50,7 +50,7 @@ server.on("upgrade", async function(request, socket, head) {
gun
.
gun
=
new
Gun
({
peers
:
[],
// should we use self as peer?
localStorage
:
false
,
file
:
false
,
// "tmp/" + pathname,
file
:
false
,
radisk
:
false
,
multicast
:
false
,
ws
:
{
noServer
:
true
,
path
:
pathname
,
web
:
gun
.
server
},
...
...
@@ -66,6 +66,7 @@ server.on("upgrade", async function(request, socket, head) {
gun
.
server
.
emit
(
"connection"
,
ws
,
request
);
});
}
else
{
if
(
debug
)
console
.
log
(
"destroying socket"
,
pathname
);
socket
.
destroy
();
}
});
...
...
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