Events Streams
This stream contains the events happening within the tennis match and generally corresponds to data being entered by the umpire on the court.
Please note that if the match for the requested stream has not yet started then a 204 response code will be returned and the Websocket will not be accessible. As soon as the event starts the Websocket will become available.
The first event is always a dummy placeholder event (i.e. not produced by the upstream provider) with a match status of NotStarted:
Not Started - JSON Example
This response takes the following parameters:
ParameterTypePurpose
startPosition
int
The position in the stream that you want to start from. Each packet in the stream has an integer id, where 1 is the first packet in the stream. By default, the stream will start from the beginning. This is useful if you get disconnected from a stream and need to reconnect. When reconnecting, if you specify the id of the last packet you received + 1, then you can pick up where you left off without the need to reprocess all the events already received.
Endpoint URL
New URL: wss://dde-streams.data.imgarena.com/tennis/events/{event-id}/stream
Legacy URL: wss://dde-streams.imggaming.com/tennis/events/{event-id}/stream
N.B. – Please use event ID “2022-2789-MS027” to return the sample data. The authentication token provided will be required to make a connection to this WebSocket endpoint.
Process for connecting to the web socket endpoints
Connect to SSL WebSocket address
Send JSON packet containing the API token
Format to send API token:
{"authToken": "authentication token"}
Receive response indicating that connection is authorised (or a response indicating why the connection cannot be made)
Receive data packets
Once you have the API token, any further data that you send over the connection will be ignored.
Last updated