-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compactify transferdata (deltalog, _initial) (#252)
* drop _initial on action results * transfer only deltalogs on actions sent to server * change reducer to only return a deltalog * push coverage to 100% by dropping unused statements * separate log object and socket events that modify it Split the socket events into: 1. SYNC This is called at the beginning of the connection. The server sends back the entire state and the entire log. 2. UPDATE This is called after each move (it is broadacast to all clients). The server sends back a deltalog and the entire state. The log object is maintained in client.js via Redux middleware. On the server, it is still kept inside the state object, although a future change will split it into a separate area of storage as an optimization. * remove unnecessary Object.assign from server code * refactor some tests * minor fix
- Loading branch information
1 parent
314f8f0
commit 500ecc3
Showing
16 changed files
with
451 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.