feat(ws): enable websocket log streaming#78
Merged
mcollina merged 25 commits intoplatformatic:mainfrom May 26, 2025
Merged
Conversation
9f56224 to
5268489
Compare
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com> update Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com> update Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
5268489 to
62c1617
Compare
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Contributor
Author
|
@mcollina this is now working on the frontend 👍🏼 |
mcollina
requested changes
May 15, 2025
Member
mcollina
left a comment
There was a problem hiding this comment.
Are there tests for the websocket route?
Also, I would recommend splitting the routes into multiple files.
rozzilla
commented
May 15, 2025
web/backend/routes/root.ts
Outdated
| getLogsFromReadable(await api.getRuntimeAllLogsStream(pid), log)) | ||
| typedFastify.get<{ Params: PidParam }>('/runtimes/:pid/logs/ws', { | ||
| schema: { params: pidParamSchema, hide: true }, | ||
| websocket: true |
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
Contributor
Author
mcollina
requested changes
May 16, 2025
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
Contributor
Author
@mcollina I took some time also to split the routes in multiple files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #37