Skip to content

Conversation

@vovsike
Copy link
Collaborator

@vovsike vovsike commented Jan 22, 2026

Closes #

Description

@vovsike vovsike marked this pull request as ready for review January 22, 2026 14:20
Copy link
Member

@Pasarus Pasarus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the SSE, what happens when the user's session is still open and the API responsible restarts?



# --- Live App Definition ---
live_app = FastAPI()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we at the point this should be in a different file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, it looks like the methods serve different purposes than the ones above it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes sense to me, perhaps a small refactor split them both out from the main file into specific router files under a routers package like in the main API?

) as ws:
await ws.send(json.dumps({"type": "subscribe", "pvs": [pv]}))

while True:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have a timeout on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants