View client-initiated websocket Subscriptions
# support
j
Is there an endpoint to view active websocket subscriptions? The Project Subscriptions is only showing those defined server-side and not the client-side initiated ones.
d
Hey Jason, currently there is no way to view active WebSocket subscriptions since they only live in an ephemeral Redis key which has the same lifetime as the WebSocket connection associated with the subscription(s) created by MedplumClient. They are not accessible via FHIR search or any other means at the moment Is there something you are trying to debug in regards to WebSocket subscriptions currently?
j
Thanks Derrick, I was trying to add some simple monitoring to ensure a client was connected. I did add a
/heathcheck
endpoint on the client that exposes that the ws is connected from the client application. I was hoping that I could get visibility from the server for all the connected ws subscriptions and what criteria they have defined, etc.
159 Views