Commands - Holy-Spirit-Scholar-Bowl/buzzer GitHub Wiki

The server and client use commands to communicate. Commands have a type (such as "buzz" or "clear"), parameters, and information about the sender and when they were sent.

Format

The server and client send commands in JSON. The JSON follows the same basic structure:

{
    "type": string,
    "parameters": { } | null,
    "user": {
        "name": string,
        "realName": string,
        "team": string,
        "host": boolean
    },
    "sent": number
}

The value of user is only read by the server when receiving messages from a client.

List of commands

  • online, sent by the server to notify the client of the users currently online