>
technical stuff
>
the API
>
instance channel
the instance
channel gives you basic information about the currently connected veadotube instance. its message contents are always a JSON-encoded object.
upon connecting to the WebSocket server, it should automatically send you a message containing information on the instance. it’s the same JSON object as the contents of the instance file, but without the Unix timestamp and an extra "event":"info"
. for example:
instance: {
"event": "info",
"name": "veadotube mini",
"id": "mini-xxxxxxxxxxxxxxxx-xxxxxxxx",
"version": "2.1",
"language": "en",
"server": "127.0.0.1:2424"
}
if you wish to receive this message again, you can send a request:
instance: {
"event": "info"
}
through command line, to get that same JSON object (minus the prefix), you simply call:
./veadotube -i 0 instance