tildemush
tildemush copied to clipboard
switch to ACK pattern instead of OK pattern in server core
Right now commands work like this:
- client sends command
- server attempts to execute it
- if there is a
UserError
, we send red text - if there are no errors, we send
COMMAND OK
I don't think this is a useful approach. The client has no idea what command COMMAND OK
is referring to and the user only cares about what state changes in front of them.
I'd like to change this approach to
- client sends
COMMAND UUID MESSAGE
- server immediately sends
COMMAND UUID ACK
- things happen
this way, the client knows if and when the server is seeing the commands it sends. this can be used to report on connection health and other stuff.