Skip to content

Commit

Permalink
remote: sync state from server (#62)
Browse files Browse the repository at this point in the history
this involves a major refactor of the remote client
to avoid code duplication

whats still missing is syncing overlay state, but that is currently
generally not implemented
  • Loading branch information
noerw authored Sep 3, 2021
1 parent 125ed79 commit 3daa0db
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 236 deletions.
3 changes: 1 addition & 2 deletions controllers/sockets.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ io.on('connection', function(socket) {
console.log(colors.magenta(new Date() + " Socket disconnected: " + socket.client.id));
});

// Current State
// Return current State as an object
socket.on('/get/state', function() {
console.log(currentState);
socket.emit('/get/state', currentState);
});

Expand Down
Loading

0 comments on commit 3daa0db

Please sign in to comment.