Currently we use HTTP GET request. For gosumemory it works fine as response's delay is usually less than 200ms.
On other hand, StreamCompanion often takes a lot of time to respond and sometimes even takes exceeds 2s timeout (which should be more than enough!).
Only fix I can think of right now is changing connection to websockets, so we can be certain we'll get some data (although it may be outdated).
Currently we use HTTP GET request. For gosumemory it works fine as response's delay is usually less than 200ms.
On other hand, StreamCompanion often takes a lot of time to respond and sometimes even takes exceeds 2s timeout (which should be more than enough!).
Only fix I can think of right now is changing connection to websockets, so we can be certain we'll get some data (although it may be outdated).