-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Things to change for a protocol v2 #573
Comments
|
Which messages are sent as a list? |
I think it's the list of open games. Also documenting the new protocol is not a fancy feature, it should be mandatory. Otherwise in 3 years the next dev sits here and tries to find all the details of the protocol |
Additional things I'd like to see:
|
I think that could just be a normal issue as it doesn’t require breaking changes to the protocol. |
Saying now that we shouldn't remove ping and pong as I am now going to use them to check if the connection is still alive client side as I realized that the client will only say the connection is closed due to internet outage when it fails on write which right now all write actions require user action so the client doesn't know a connection is dead until the user takes action. |
I'd like to start keeping track of things we want to change in a new protocol.
Stuff to remove
QDataStreamProtocol
v2 - Remove Deprecations #816It is pointless, everyone hates it.
Only the legacy client still uses it. All clients should use the API instead.
create_account
command completely v2 - Remove Deprecations #816id
andlogin
from the welcome message. v2 - Remove Deprecations #816Use corresponding attributes on the
me
object insteadmod
fromgame_matchmaking
command. v2 - Remove Deprecations #816Use
queue_name
instead.faction
fromgame_matchmaking
command. v2 - Remove Deprecations #816Use
set_party_factions
instead.Use token instead
init_mode
fromgame_launch
command. v2 - Remove Deprecations #816Use
game_type
instead.kick
andkill
styles from notice messagesUse a dedicated administrative command instead
matchmaker_info
message v2 - Remove Deprecations #816irc_password
commandIRC authentication will use tokens from the API
global_rating
,ladder_rating
, andnumber_of_games
fromplayer_info
message.Use
ratings
insteadStuff to change
command_avatar
list_avatar
tolist
We are just wasting bytes
This would allow more web interactions
Simplifies parsing
launched_at
ingame_info
ping
andpong
commands? Maybe only send them if no other messages have been sentgame_info
so that messages are not sent sometimes as a list and sometimes as individual gamesgame_info
teams section Lobby list json additional info. #812game_launch
message when match is cancelled v2 - Remove Deprecations #816Handle
match_cancelled
insteadcommand_ask_session
What is the point? What does the policy server use this for? Can it be removed?
Stuff to add
A way to tell when a player has left an ongoing game (player dies but game is not over).Issue/#703 update game info when player disconnects #831ready
check with match confirmation #607Fancy features
Use dataclasses to describe message fields
The text was updated successfully, but these errors were encountered: