Can we please simplify the protocol
Posted: 18 Jun 2020, 17:14
There are so many individual success/failure commands in the lobby server protocol now that it's kind of silly trying to implement it. I strongly suggest we go a different way: using the generic "Failed" command and adding a generic "Success" command. Something like…
Success [COMMAND] (command argument is optional – preferably clients would be using message IDs. wouldn't be optional in the final spec – would be there or not)
Failure [Command] {Reason}
Having this as a standard response to *all* fail/success commands would also make a nice alternative to the commands which *may* get a ServerMessage response (e.g. ChangePassword) and make it easier to deliberately display client behaviour based on responses of an expected format that we know we can count on, without having to try to "guess" whether it's a failure or a success.
Similarly, why are these all separate commands?
Is there room to update these commands? I'm willing to do the work, if you can assure me it would be considered.
I'm very sorry about the last link but I had one spare and had to do something with it.
Success [COMMAND] (command argument is optional – preferably clients would be using message IDs. wouldn't be optional in the final spec – would be there or not)
Failure [Command] {Reason}
Having this as a standard response to *all* fail/success commands would also make a nice alternative to the commands which *may* get a ServerMessage response (e.g. ChangePassword) and make it easier to deliberately display client behaviour based on responses of an expected format that we know we can count on, without having to try to "guess" whether it's a failure or a success.
Similarly, why are these all separate commands?
Is there room to update these commands? I'm willing to do the work, if you can assure me it would be considered.
I'm very sorry about the last link but I had one spare and had to do something with it.