cryostatio / cryostat-web

Web front-end for Cryostat: Secure JDK Flight Recorder management for containerized JVMs
https://cryostat.io/
Other
10 stars 20 forks source link

[Bug] Target list fails to populate if WebSocket connection is not established #1272

Closed andrewazores closed 1 month ago

andrewazores commented 1 month ago

Current Behavior

See #1271

This is an old behaviour because of the web-client's history of originally using WebSockets exclusively, back when it was the "command channel", and the UI would send requests and receive responses entirely over WS. Since this has been phased out in favour of an HTTP REST-ish API, and WebSockets are only used to push notifications from the server, it no longer makes sense for the web-client to wait for the WebSocket connection to be established before querying for the target list or any other data from the server.

Expected Behavior

No response

Steps To Reproduce

No response

Environment

No response

Anything else?

No response