Request: Competition List
The client emits a request to get a list of competitions.
Emit:
{
"type": "list",
"data": "1,4"
}
type: The type of event being requested, here it is “list”.data: A comma-separated list of competition IDs (e.g.,1,4).
Callback Response: Competition List
The server responds with the requested competitions.
{
"type": "list",
"data": {
"4": [
{ "na": "DEMO LEAGUE", "li": "888323550", "si": "4" }
],
"1": [
{ "na": "UEFA", "li": "2266", "si": "4" }
]
}
}
Glossary of Response:
| Key | Description |
|---|---|
type |
The type of response (e.g., “list”). |
data |
An object containing competition data indexed by competition ID (e.g., “1”, “4”). |
na |
The name of the competition (e.g., “DEMO LEAGUE”, “UEFA”). |
li |
League ID associated with the competition. |
si |
Sport ID (unique identifier for the sport). |