Once connected to a socket, you'll get basic status information by default. As soon as data has been received, this will be pushed to the socket. However, the data buffer can be accessed by command as well.
Please note the UNIX line delimiter \n at the end of commands.
Every command is JSON encoded.
Data must be encoded to send binary data instead of strings. Suggestion: base64 encoding