-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Websocket communication between k6 Studio and browser #382
feat: Websocket communication between k6 Studio and browser #382
Conversation
@@ -23,7 +24,7 @@ export default defineConfig((env) => { | |||
external, | |||
}, | |||
}, | |||
plugins: [pluginHotRestart('restart')], | |||
plugins: [pluginHotRestart('restart'), tsconfigPaths()], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allows the main process to use @/
import paths.
@@ -22,7 +23,7 @@ export default defineConfig((env) => { | |||
}, | |||
}, | |||
}, | |||
plugins: [pluginHotRestart('reload')], | |||
plugins: [pluginHotRestart('reload'), tsconfigPaths()], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allows the preload process to use @/
import paths.
src/schemas/recording/v1/browser.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assumed we're going to want to write zod schemas for recordings, i.e. HAR files, at some point so I structured this like we've done with generator/settings schemas.
…n-between-studio-and-extension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
This PR sets up WebSocket communication between k6 Studio and the recorded browser. It currently only sends a dummy event to the server and is logged in the renderer process.
How to Test
Checklist
npm run lint
) and all checks pass.npm test
) and all tests pass.Screenshots (if appropriate):
Related PR(s)/Issue(s)
Closes https://github.com/grafana/k6-cloud/issues/3087