projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add basic Desktop notifications for game start + new move + game over
[vchess.git]
/
server
/
sockets.js
diff --git
a/server/sockets.js
b/server/sockets.js
index
25abadb
..
d00b3c8
100644
(file)
--- a/
server/sockets.js
+++ b/
server/sockets.js
@@
-209,6
+209,9
@@
module.exports = function(wss) {
clients[page][rid][rtmpId].socket,
{ code: "askfullgame", from: [sid,tmpId] }
);
+ } else {
+ // I'm the only person who have the game for the moment:
+ send(socket, { code: "fullgame", data: { empty: true } });
}
}
break;