projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
loadMore button for my local games as well
[vchess.git]
/
client
/
src
/
views
/
Game.vue
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
68c8c94
..
1a86d9b
100644
(file)
--- a/
client/src/views/Game.vue
+++ b/
client/src/views/Game.vue
@@
-445,6
+445,8
@@
export default {
const data = JSON.parse(msg.data);
switch (data.code) {
case "pollclients":
const data = JSON.parse(msg.data);
switch (data.code) {
case "pollclients":
+ // TODO: shuffling and random filtering on server, if
+ // the room is really crowded.
data.sockIds.forEach(sid => {
if (sid != this.st.user.sid) {
this.people[sid] = { focus: true };
data.sockIds.forEach(sid => {
if (sid != this.st.user.sid) {
this.people[sid] = { focus: true };