Skip to content

Things to change for a protocol v2 #573

@Askaholic

Description

@Askaholic

I'd like to start keeping track of things we want to change in a new protocol.

Stuff to remove

Stuff to change

  • Rework command_avatar
    • Rename action list_avatar to list
    • Return avatar id's in avatar list
    • Select avatar via id instead of url
  • Move from UTF-16 to UTF-8 Support multiple servercontexts #629
    We are just wasting bytes
  • Move the protocol to websocket, choose a websocket subprotocol (e.g. STOMP?)
    This would allow more web interactions
  • Guarantee that every message is a json dictionary (not a list)
    Simplifies parsing
  • Change all unix timestamps to ISO timestamps. For example launched_at in game_info
  • Remove or rework ping and pong commands? Maybe only send them if no other messages have been sent
  • Rework game_info so that messages are not sent sometimes as a list and sometimes as individual games
  • Use player id instead of username in game_info teams section Lobby list json additional info. #812
  • Don't send game_launch message when match is cancelled v2 - Remove Deprecations #816
    Handle match_cancelled instead
  • Rework command_ask_session
    What is the point? What does the policy server use this for? Can it be removed?

Stuff to add

Fancy features

  • Auto-generate documentation or describe protocol in a formal language that allows creation of code in multiple languages
    Use dataclasses to describe message fields

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalA feature or change that is up for discussion

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions