Skip to content

feat(ws): enable websocket log streaming#78

Merged
mcollina merged 25 commits intoplatformatic:mainfrom
rozzilla:feat/ws/enable-websocket-log-streaming
May 26, 2025
Merged

feat(ws): enable websocket log streaming#78
mcollina merged 25 commits intoplatformatic:mainfrom
rozzilla:feat/ws/enable-websocket-log-streaming

Conversation

@rozzilla
Copy link
Copy Markdown
Contributor

@rozzilla rozzilla commented Apr 25, 2025

Fixes #37

@rozzilla rozzilla force-pushed the feat/ws/enable-websocket-log-streaming branch from 9f56224 to 5268489 Compare April 30, 2025 15:17
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>
@rozzilla rozzilla force-pushed the feat/ws/enable-websocket-log-streaming branch from 5268489 to 62c1617 Compare May 14, 2025 09:35
rozzilla and others added 13 commits May 14, 2025 11:40
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
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>
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>
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>
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
@rozzilla rozzilla marked this pull request as ready for review May 15, 2025 15:04
@rozzilla
Copy link
Copy Markdown
Contributor Author

@mcollina this is now working on the frontend 👍🏼

Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

Are there tests for the websocket route?

Also, I would recommend splitting the routes into multiple files.

getLogsFromReadable(await api.getRuntimeAllLogsStream(pid), log))
typedFastify.get<{ Params: PidParam }>('/runtimes/:pid/logs/ws', {
schema: { params: pidParamSchema, hide: true },
websocket: true
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We can remove it once this is released

rozzilla added 2 commits May 15, 2025 18:06
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
@rozzilla
Copy link
Copy Markdown
Contributor Author

Are there tests for the websocket route?

@mcollina done on 9b91f33

Also, I would recommend splitting the routes into multiple files.

Good point. To reduce the amount of changes in this PR, I would like to do it in a follow-up one, if it's not a problem 😉

@rozzilla rozzilla requested a review from mcollina May 15, 2025 16:22
rozzilla added 4 commits May 16, 2025 18:12
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>
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
@rozzilla rozzilla requested a review from mcollina May 19, 2025 07:40
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
@rozzilla
Copy link
Copy Markdown
Contributor Author

Are there tests for the websocket route?

Also, I would recommend splitting the routes into multiple files.

@mcollina I took some time also to split the routes in multiple files

rozzilla added 4 commits May 19, 2025 10:06
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>
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 53c9bc8 into platformatic:main May 26, 2025
1 check passed
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.

Support live runtime logs

2 participants