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
7914c1a1
authored
2020-04-16 12:22:20 +0000
by
Glitch (hello-express)
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
️
Checkpoint
./server.js:13690106/44
1 parent
8a72f4ce
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
radata/!
server.js
radata/!
View file @
7914c1a
{"j":{"ack\u001bname":{"":{":":"Jack",">":1587037784462}},"ill\u001bname":{"":{":":"Jill",">":1587037784464.001}}},"zero":{"1\u001bname":{"":{":":"Jack",">":1587038341751}},"2\u001bname":{"":{":":"Jill",">":1587038341752.001}}}}
\ No newline at end of file
{"j":{"ack\u001bname":{"":{":":"Jack",">":1587037784462}},"ill\u001bname":{"":{":":"Jill",">":1587037784464.001}}},"zero":{"1\u001bname":{"":{":":"Jack",">":1587039735128}},"2\u001bname":{"":{":":"Jill",">":1587039735132.001}}}}
\ No newline at end of file
...
...
server.js
View file @
7914c1a
...
...
@@ -42,7 +42,7 @@ server.on('upgrade', async function (request, socket, head) {
console
.
log
(
'handle connection...'
);
//ws.emit('connection', socket);
gun
.
server
.
handleUpgrade
(
request
,
socket
,
head
,
function
(
ws
)
{
console
.
log
(
'connecting to gun.. '
)
console
.
log
(
'connecting to gun.. '
,
gun
.
gun
.
opt
().
opt
)
gun
.
server
.
emit
(
'connection'
,
ws
,
request
);
});
...
...
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