Overview
This section will cover the basic packets that will be a part of every game
Point Started
This is the packet that starts the point.
Copy {
"server": {
"team": "TeamB"
},
"timestamp": "2022-08-16T08:10:25.182Z",
"nextServer": {
"team": "TeamB"
},
"eventElementType": "PointStarted",
"matchTime": "00:00:04",
"seqNum": 5
}
Best Practice
Use 'Point Started' packets to automatically close markets and to suspend betting
Fault
This packet indicates that a team has faulted on service.
Copy {
"server": {
"team": "TeamB"
},
"faultType": "Fault",
"timestamp": "2022-08-16T08:10:27.681Z",
"nextServer": {
"team": "TeamB"
},
"eventElementType": "PointFault",
"matchTime": "00:00:06",
"seqNum": 6
}
Point
A point packed is received whenever a player wins a point. They are generally standard, aces or double faults.
Copy {
"server": {
"team": "TeamB"
},
"timestamp": "2022-08-16T08:10:42.375Z",
"nextServer": {
"team": "TeamB"
},
"score": {
"currentGameScore": {
"gameType": "StandardGame",
"pointsA": "0",
"pointsB": "15"
},
"currentSetScore": {
"gamesA": 0,
"gamesB": 0
},
"previousSetsScore": [],
"overallSetScore": {
"setsA": 0,
"setsB": 0
}
},
"eventElementType": "PointScored",
"matchTime": "00:00:21",
"seqNum": 8,
"details": {
"scoredBy": "TeamB",
"pointType": "Standard"
}
}
Game Won
When you receive a new packet, with a currentGameScore of 0-0, with the currentSetScore updated and the server being changed, this indicates that a player has won the previous game. The player who won the point will be the player who has won that particular game.
Copy {
"server": {
"team": "TeamB"
},
"timestamp": "2022-08-16T08:15:20.999Z",
"nextServer": {
"team": "TeamA"
},
"score": {
"currentGameScore": {
"gameType": "StandardGame",
"pointsA": "0",
"pointsB": "0"
},
"currentSetScore": {
"gamesA": 0,
"gamesB": 1
},
"previousSetsScore": [],
"overallSetScore": {
"setsA": 0,
"setsB": 0
}
},
"eventElementType": "PointScored",
"matchTime": "00:05:00",
"seqNum": 34,
"details": {
"scoredBy": "TeamB",
"pointType": "Standard"
}
}
Time Called
This packet indicates that the umpire has called time at the end of the changeover and that the match needs to continue
Copy {
"timestamp": "2022-08-16T08:29:00.712Z",
"eventElementType": "TimeAnnouncement",
"matchTime": "00:18:39",
"seqNum": 82,
"time": "2022-08-16T10:28:59"
}