79289096

Date: 2024-12-17 19:14:10
Score: 2.5
Natty:
Report link

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?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: wellwell