SubOnWholeGamesInfo
Overview
Protocol | Websocket |
---|---|
Path | wss://backend.tvbet.bet/signalrhub-integration-service/hubs |
Description | Returns game results. |
Non functional requirement | Response is returned every 500 milliseconds. |
Request parameters
Parameter | Type | Description | |
---|---|---|---|
Query parameters | |||
access_token | string | JWT authorization token. | |
Message | |||
arguments | array | ||
subscribe | String | Subscription name Constant: SubOnWholeGamesInfo | |
GameType | number | Game type identificator. | |
Count | number | Games limit. Constant: 1 | |
PartnerClientId | number | Partner's client identificator. | |
target | string | Constant: Subscribe | |
type | string | Constant: 1 |
Example
{
"arguments": [
"SubOnWholeGamesInfo",
"{ \"GameType\": 1, \"PartnerClientId\": 1, \"Count\": 1 }"
],
"target": "Subscribe",
"type": 1
}
Response parameters
Parameter | Type | Required | Description | |||
---|---|---|---|---|---|---|
sId | number (unit) | Yes | Sequence id. From the moment of connection, the counter starts from 0. When reconnecting, the counter is not reset. | |||
tst | datetime | Yes | Timestamp. Time when the message was sent. | |||
im | bool | Yes | In maintenance. Game maintenance status indicator. | |||
bt | number | Yes | Betting timer. Shows how much time is left to place a bet. UNIX. | |||
wgi | array of object | Yes | Whole games info. | |||
i | number | Yes | Game (round) ID. Internal game identifier (BETCORE). | |||
t | number | Yes | Game type. For example: 3 (Poker) | |||
ge | number | Yes | Game edition. Global/public game identifier. | |||
lrId | number | Yes | Last round ID. ID of game (round). The identifier of the round that was last completed. | |||
s | number | Yes | Game state: 1 - Awaiting 2 - Active 3 - Finished 4 - Review 5 - Cancelled | |||
ps | number | Yes | Game play status: BettingTime = 1 GameAction = 2 | |||
cr | number | Yes | Game current round. | |||
sdt | datetime | Yes | Game start date and time. Unix. | |||
fdt | datetime | Yes | Game finish date and time. Unix. | |||
r | array of object | No | Game results. | |||
v | string | Yes | Value of the game element. For example: the value of the card or the ball number. | |||
hi | number | Yes | Hand ID. | |||
ri | number | Yes | Round ID. | |||
s | number | Yes | Status: 1 - Accepted 2 - Canceled | |||
sn | number | Yes | Sequential number. For example: the sequential number of a card that was laid out on the table based on its order. Or sequential number of the ball. | |||
h | bool | Yes | Horseshoe. Type of bonus affecting the size of winnings in ball games. | |||
h | array of object | No | Hands. | |||
i | number | Yes | Hand ID. | |||
r | array of object | No | Result. | |||
Value | string | Yes | Value. | |||
GameId | number | Yes | Game ID. | |||
ManualControl | bool | Yes | Manual control. | |||
Created | datetime | Yes | Created. | |||
HandId | number | Yes | Hand ID. | |||
ResultAction | string | Yes | Result action. | |||
RoundId | number | Yes | Round ID. | |||
Status | number | Yes | Status. | |||
SequentialNumber | number | Yes | Sequential number. For example: the sequential number of a card that was laid out on the table based on its order. | |||
StudioCreated | datetime | Yes | Studio created. | |||
Horseshoe | bool | Yes | Horseshoe. Type of bonus affecting the size of winnings in ball games. | |||
s | number | Yes | Status. | |||
p | number | Yes | Score. | |||
e | array of object | Yes | Game events. | |||
t | number | Yes | Event type. | |||
p | array | No | Parameters. | |||
c | number | Yes | Coefficient. | |||
b | bool | Yes | Block. | |||
sn | string | Yes | Short number. | |||
di | object | Yes | Dealer information. Information about the dealer. If there's no dealer in the game di = null | |||
id | number | Yes | ID. | |||
n | string | Yes | Name. | |||
a | number | Yes | Age. | |||
c | string | Yes | Country (citizenship). |
Example
{
"type": 1,
"target": "WholeGamesInfoSubscribe",
"arguments": [
{
"wgi": [
{
"i": 30000603282,
"t": 3,
"ge": "PB650351",
"s": 2,
"ps": 1,
"cr": 1,
"sdt": "2025-06-19T15:56:50.529Z",
"fdt": "2025-06-19T15:59:50.529Z",
"r": [
{ "v": "3c", "hi": 1, "ra": null, "ri": 1, "s": 1, "sn": 1, "vi": null, "h": false },
{ "v": "9c", "hi": 2, "ra": null, "ri": 1, "s": 1, "sn": 2, "vi": null, "h": false },
{ "v": "4d", "hi": 3, "ra": null, "ri": 1, "s": 1, "sn": 3, "vi": null, "h": false },
{ "v": "2c", "hi": 4, "ra": null, "ri": 1, "s": 1, "sn": 4, "vi": null, "h": false },
{ "v": "7d", "hi": 5, "ra": null, "ri": 1, "s": 1, "sn": 5, "vi": null, "h": false },
{ "v": "5h", "hi": 6, "ra": null, "ri": 1, "s": 1, "sn": 6, "vi": null, "h": false },
{ "v": "kh", "hi": 1, "ra": null, "ri": 1, "s": 1, "sn": 7, "vi": null, "h": false },
{ "v": "8c", "hi": 2, "ra": null, "ri": 1, "s": 1, "sn": 8, "vi": null, "h": false },
{ "v": "2s", "hi": 3, "ra": null, "ri": 1, "s": 1, "sn": 9, "vi": null, "h": false },
{ "v": "qh", "hi": 4, "ra": null, "ri": 1, "s": 1, "sn": 10, "vi": null, "h": false },
{ "v": "7c", "hi": 5, "ra": null, "ri": 1, "s": 1, "sn": 11, "vi": null, "h": false },
{ "v": "jd", "hi": 6, "ra": null, "ri": 1, "s": 1, "sn": 12, "vi": null, "h": false },
{ "v": "as", "hi": 0, "ra": null, "ri": 2, "s": 1, "sn": 13, "vi": null, "h": false },
{ "v": "9h", "hi": 0, "ra": null, "ri": 2, "s": 1, "sn": 14, "vi": null, "h": false },
{ "v": "6c", "hi": 0, "ra": null, "ri": 2, "s": 1, "sn": 15, "vi": null, "h": false },
{ "v": "3s", "hi": 0, "ra": null, "ri": 3, "s": 1, "sn": 16, "vi": null, "h": false }
],
"h": [
{ "i": 1, "r": [], "s": 0, "p": 0 },
{ "i": 2, "r": [], "s": 0, "p": 0 },
{ "i": 3, "r": [], "s": 0, "p": 0 },
{ "i": 4, "r": [], "s": 0, "p": 0 },
{ "i": 5, "r": [], "s": 0, "p": 0 },
{ "i": 6, "r": [], "s": 0, "p": 0 }
],
"e": [
{ "t": 196, "p": [], "c": 5.50, "b": false, "sn": "03196" },
{ "t": 197, "p": [], "c": 5.50, "b": false, "sn": "03197" },
{ "t": 198, "p": [], "c": 5.50, "b": false, "sn": "03198" },
{ "t": 199, "p": [], "c": 5.50, "b": false, "sn": "03199" },
{ "t": 200, "p": [], "c": 5.50, "b": false, "sn": "03200" },
{ "t": 201, "p": [], "c": 5.50, "b": false, "sn": "03201" },
{ "t": 202, "p": [], "c": 1000.0, "b": false, "sn": "03202" },
{ "t": 203, "p": [], "c": 6.20, "b": false, "sn": "03203" },
{ "t": 204, "p": [], "c": 3.25, "b": false, "sn": "03204" },
{ "t": 205, "p": [], "c": 7.10, "b": false, "sn": "03205" },
{ "t": 206, "p": [], "c": 6.00, "b": false, "sn": "03206" },
{ "t": 207, "p": [], "c": 9.20, "b": false, "sn": "03207" },
{ "t": 208, "p": [], "c": 9.10, "b": false, "sn": "03208" },
{ "t": 209, "p": [], "c": 110.00, "b": false, "sn": "03209" },
{ "t": 210, "p": [], "c": 600.00, "b": false, "sn": "03210" },
{ "t": 211, "p": [], "c": 1000.0, "b": false, "sn": "03211" }
],
"vs": 2,
"lrId": 30000603281,
"di": {
"id": 2312,
"n": "PetreQA-manual",
"c": "Poland",
"a": 31
}
}
],
"tst": "2025-06-19T15:57:18.6120782Z",
"bt": 1,
"im": false,
"sId": 8975
}
]
}