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
34c50db8
authored
2020-05-03 18:44:02 +0700
by
Jabis Sevón
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
roomname not pathname
1 parent
4bd54afd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
server.js
server.js
View file @
34c50db
...
...
@@ -75,7 +75,7 @@ server.on("upgrade", async function(request, socket, head) {
})
})*/
let
qs
=
[
"sig="
+
encodeURIComponent
((
sig
?
sig
:
''
)),
"creator="
+
encodeURIComponent
((
creator
?
creator
:
''
))].
join
(
"&"
);
let
relaypath
=
path
name
+
'?'
+
qs
;
let
relaypath
=
room
name
+
'?'
+
qs
;
let
peers
=
relaypeers
.
split
(
','
).
map
(
function
(
p
){
return
p
+
relaypath
;
});
if
(
debug
)
console
.
log
(
"peers"
,
peers
);
const
g
=
gun
.
gun
=
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