Description: This event is used to request a list of available sports. The client sends a request to the server, and the server responds with the list of sports.
Callback Response:
The server responds with a list of available sports:
{
"type": "list",
"data": [
{ "na": "Football", "si": 1, "a": true },
{ "na": "Basketball", "si": 7522, "a": true },
{ "na": "Greyhound Racing", "si": 4339, "a": true },
{ "na": "Jackpot", "si": 10, "a": true },
{ "na": "Cricket Casino", "si": 11, "a": true },
{ "na": "Tennis", "si": 2, "a": true },
{ "na": "Cricket", "si": 4, "a": true },
{ "na": "Horse Racing", "si": 7, "a": true },
{ "na": "Election", "si": 6, "a": true },
{ "na": "Volleyball", "si": 998917, "a": true },
{ "na": "Kabaddi", "si": 14, "a": true }
]
}
Glossary of Response:
| Key | Description |
|---|---|
type |
The type of response being sent. Here it is “list”, indicating that the response contains a list of items (sports). |
data |
An array of sports available. Each item in the array represents a different sport with details. |
na |
The name of the sport (e.g., “Football”, “Basketball”). |
si |
The sport ID (a unique identifier for each sport). |
a |
A boolean value indicating whether the sport is active (true means it is available). |