An open API service indexing awesome lists of open source software.

https://github.com/webdad/turboplayer2sockets

Tracks Turboplayer-Export-XML and presents the data with sockets.
https://github.com/webdad/turboplayer2sockets

Last synced: about 1 month ago
JSON representation

Tracks Turboplayer-Export-XML and presents the data with sockets.

Awesome Lists containing this project

README

          

# turboplayer2sockets

Tracks Turboplayer-Export-XML and presents the data with sockets.

## Config

The easy way is to simply create a __config.json__.

- __port__: Port for the Service. (default: 3000)
- __turboplayerxml__: Where is the xml-file. (default: /opt/turboplayer.xml)
- __log/loglevel__: The Loglevel. (default: INFO)

Example:

```json
{
"port": 3000,
"turboplayerxml": "/opt/turboplayer.xml",
"log": {
"loglevel":"INFO"
}
}
```

Additional Config from otherr packages:

- Under the key __security__:
- Under the key __log__:
- Under the key __metrics__:

## Usage

There are two ways to get information: Sockets and a REST-API.

You may combine both methods, e.g. loading the present element on client start
and then listening to changes on the sockets.

### Sockets

We are using [socket.io](https://socket.io/)

In your HTML-File add the following snippet before the `