projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cd3174c
)
Suggest using Redis when failing to deliver messages
author
Benjamin Auder
<benjamin.auder@somewhere>
Sun, 18 Nov 2018 12:55:56 +0000
(13:55 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Sun, 18 Nov 2018 12:55:56 +0000
(13:55 +0100)
sockets.js
patch
|
blob
|
blame
|
history
diff --git
a/sockets.js
b/sockets.js
index
a1818e0
..
62d51b7
100644
(file)
--- a/
sockets.js
+++ b/
sockets.js
@@
-20,7
+20,7
@@
module.exports = function(wss) {
// TODO: when relaying to opponent, check readyState, potential setTimeout()? + send opponent (re)disconnect
// (resign, newgame, newmove). See https://github.com/websockets/ws/blob/master/lib/websocket.js around line 313
// TODO: when relaying to opponent, check readyState, potential setTimeout()? + send opponent (re)disconnect
// (resign, newgame, newmove). See https://github.com/websockets/ws/blob/master/lib/websocket.js around line 313
- // TODO: awaiting newmove, resign, newgame :: in memory structure
+ // TODO: awaiting newmove, resign, newgame :: in memory structure
(use Redis ?)
wss.on("connection", (socket, req) => {
//const params = new URL("http://localhost" + req.url).searchParams;
wss.on("connection", (socket, req) => {
//const params = new URL("http://localhost" + req.url).searchParams;