Can we have better examples for the following? [Just had to answer some questions related to it]
REF: https://github.com/justintv/Twitch-API/tree/master/PubSub
// Request from client to server
{
"type": "LISTEN",
"nonce": "44h1k13746815ab1r2",
"data": {
"topics": ["whispers.test_account","video-playback.lirik"],
"auth_token": "...",
}
}
// Response from server to client
{
"type": "RESPONSE",
"nonce": "44h1k13746815ab1r2",
"error": "",
}
This should really be something more like
// Request from client to server
{
"type": "LISTEN",
"nonce": "44h1k13746815ab1r2",
"data": {
"topics": ["whispers.23161357","video-playback.23161357"],
"auth_token": "...",
}
}
// Response from server to client
{
"type": "RESPONSE",
"nonce": "44h1k13746815ab1r2",
"error": "",
}
and a description that 23161357 = Lirik’s channel ID
Or something like on the bits page, and have a nice little box the explains each parameter name/description for the request