> For the complete documentation index, see [llms.txt](https://docs.thesports.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thesports.com/snooker/websocket/websocket-sample-data.md).

# WebSocket Sample Data

### score

```json
[
    {
        "id": "3glrw8h00557rdy",
        "score": [
            "3glrw8h00557rdy",
            100,
            0,
            {
                "ft": [
                    18,
                    15
                ]
            }
        ]
    }
]

field description
ft - Total score
[
    "3glrw8h00557rdy",//Match id
    100,//Match status, please refer to Status code->Match state
    0,//Batting team (stick), 1. Home team, 2. Away team, 0. Unknown
    {
        "ft": [//Total score
            18,//Home team score
            15 //Away team score
        ]
    }
]
```

### stats

```json
[
    {
        "id": "3glrw8h00557rdy",
        "stats": [
            [
                0,
                [
                    [
                        1,
                        187,
                        256
                    ],
                    [
                        2,
                        26.8769,
                        22.573
                    ]
                ]
            ]
        ]
    }
]

field description
[
    [
        0,//Type, 0-full court, 1-first set, 2-second set, and so on
        [
            [
                1,//Statistic type，please refer to Status code->Technical Statistics
                187,//Home team value
                256 //Away team value
            ],
            [
                2,
                26.8769,
                22.573
            ]
        ]
    ]
]
```

### timeline

```json
[
    {
        "id": "3glrw8h00557rdy",
        "timeline": [
            {
                "set": 1,
                "opener": 2,
                "score": {
                    "home": 0,
                    "away": 1,
                    "win": 2
                },
                "points": [
                    {
                        "type": 1,
                        "home": 0,
                        "away": 117,
                        "belong": 2,
                        "point": 117,
                        "balls": [
                            1,
                            4,
                            1
                        ]
                    }
                ]
            }
        ]
    }
]

field description
[
    {
        "set": 1,//Set, 1-first set, 2-second set, and so on
        "opener": 2,//Opening side, 1-Home team, 2-Away team
        "score": {//Set score (Real-time set, field does not exist)
            "home": 0,//Home team score
            "away": 1,//Away team score
            "win": 2//Winner, 1-Home team, 2-Away team
        },
        "points": [//Score timeline
            {
                "home": 0,//Home team score
                "away": 117,//Away team score
                "type": 1,//Type 1-Hit Points 2-Foul Points
                "belong": 2,//1-Home team, 2-Away team
                "point": 117,//This score
                "balls": [//Shot Details 1-Red Ball 2-Yellow Ball 3-Green Ball 4-Brown Ball 5-Blue Ball 6-Pink Ball 7-Black Ball
                    1,
                    4,
                    1
                ]
            }
        ]
    }
]
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.thesports.com/snooker/websocket/websocket-sample-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
