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
3daa21e6
authored
2020-05-08 00:02:54 +0700
by
Jabis Sevón
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
meething label
1 parent
22d83f95
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
server.js
server.js
View file @
3daa21e
...
...
@@ -89,8 +89,10 @@ server.on("upgrade", async function(request, socket, head) {
ws
:
{
noServer
:
true
,
path
:
pathname
}
});
gun
.
server
=
gun
.
gun
.
back
(
'opt.ws.web'
);
// this is the websocket server
var
meething
=
g
.
get
(
'meething'
).
put
({
label
:
'Meething'
});
lru
.
set
(
pathname
,
gun
);
let
obj
=
{
label
:
roomname
.
replace
(
/
(
_.*
)
/
,
''
),
roomname
:
roomname
,
creator
:
creator
};
...
...
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