Not sure where else to post it so I’ll post it here.
There is an error in the Socket.IO section of the API documentation.
It currently reads:
socket.on('error', function(err) {
var code = err.split('::')[0];
if(err === '401') {
console.log('authentication failed');
} else if(err === '429') {
console.log('rate limited');
} else if(err === '400') {
console.log('bad request');
}
});
When it should read:
socket.on('error', function(err) {
var code = err.split('::')[0];
if(code === '401') {
console.log('authentication failed');
} else if(code === '429') {
console.log('rate limited');
} else if(code === '400') {
console.log('bad request');
}
});
Its not a big deal, but people might be wondering why they weren’t getting their error messages if they followed the docs to the tee