# Websockets

A single websocket endpoint exists for each match. It is a match details feed and contains an action based play by play representation of a volleyball match.

### Endpoint URL

`wss://dde-streams.imgarena.com/tabletennis/{id}/matchdetails`

### Process for connecting to the web socket endpoints

* Connect to SSL websocket address
* Send JSON packet containing API 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.

Security protocol for WebSockets:\
Please note that we currently we do not support SSL. We only support the use of TLS Version 1.2+.
