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
e2c07d0d
authored
2020-05-02 14:43:29 +0700
by
Jabis Sevón
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
logging objects
1 parent
9648f2fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
server.js
server.js
View file @
e2c07d0
...
...
@@ -100,7 +100,7 @@ server.on("upgrade", async function(request, socket, head) {
passwordProtected
:
true
});
console
.
log
(
"putting object to user"
,
obj
,
user
);
let
roomnode
=
user
.
get
(
roomname
).
put
(
obj
,
function
(
roomack
){
user
.
get
(
roomname
).
put
(
obj
,
function
(
roomack
){
console
.
log
(
"roomnode?"
,
roomack
);
g
.
get
(
'rtcmeeting'
).
get
(
roomname
).
put
(
roomnode
,
function
(
puback
){
console
.
log
(
"put object"
,
puback
);
...
...
@@ -110,7 +110,7 @@ server.on("upgrade", async function(request, socket, head) {
});
}
else
{
Object
.
assign
(
obj
,{
passwordProtected
:
false
});
let
roomnode
=
g
.
get
(
"rtcmeeting"
).
get
(
roomname
).
put
(
obj
,
function
(
grack
){
g
.
get
(
"rtcmeeting"
).
get
(
roomname
).
put
(
obj
,
function
(
grack
){
console
.
log
(
"room created"
,
grack
);
});
}
...
...
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