That endpoint seems to be returning values starting with 'K' and not 'S'.
I was able to run your code (using React instead of Jquery), and the websocket piece works fine.
if (data.startsWith('K,')) {
console.log('true', { data })
// display to page (using Jquery instead of this line if you prefer)
document.getElementsByTagName('header')[0].innerHTML += data
}
Are you able to see a debugging statement inside your data.startsWith('S,')
condition?