do not send whole state on action
This commit is contained in:
parent
86489c5394
commit
53a4ae536d
6 changed files with 135 additions and 66 deletions
|
|
@ -3,3 +3,9 @@ let marshal o = Marshal.to_string o [] |> Format.sprintf "%S"
|
|||
let unmarshal o =
|
||||
let s = Scanf.sscanf o "%S" (fun s -> s) in
|
||||
Marshal.from_string s 0
|
||||
|
||||
type server_message =
|
||||
| Full_state of State.t
|
||||
| Update_result of (State.action', string) result
|
||||
|
||||
type client_message = Action_msg of State.action
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue