a7dc49996f
Give the message structs friendlier field names on the Rust side, because Serde lets us do that
2020-06-08 19:50:56 -04:00
c199e14435
Make the heartbeat task call the server's tick() method regularly.
...
The plumbing to get the tick task a reference to a server handle is a bit ugly;
some of the server methods should probably move to the handle impl instead.
2020-06-08 09:33:15 -04:00
d2fe79b55c
Spawn a heartbeat task while players are connected to the server, aborting it once they're off.
2020-06-05 22:14:28 -04:00
9239c19cbe
Abort the "send to client" task when the websocket is closed
2020-06-03 00:50:12 -04:00
eee34eb3ff
tidy up
2020-05-30 19:16:50 -04:00
43babbbfab
Maintain state records for connected players
2020-05-30 16:10:55 -04:00
750cfe1630
Create a PlayerId typedef, don't overload -1 for unassigned.
2020-05-26 23:32:28 -04:00
764e4d85cf
Build out skeleton of server message processing flow
2020-05-25 23:38:18 -04:00
48ab9547ed
Bizarre hack that seems to fix the type_length_limit error, but I'm not sure why
2020-05-25 23:24:55 -04:00
319f082d53
move client logic into one async fn
2020-05-25 22:17:44 -04:00
eb7ea021b0
hide some generics that don't need to be generic
2020-05-24 23:14:25 -04:00
03e4512839
Move greeting into its own function, tidy up error path.
2020-05-24 20:53:30 -04:00