Skip to content
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

xk6 extensions experiment: websocket API #2425

Closed
mstoykov opened this issue Mar 9, 2022 · 2 comments
Closed

xk6 extensions experiment: websocket API #2425

mstoykov opened this issue Mar 9, 2022 · 2 comments
Assignees
Labels
evaluation needed proposal needs to be validated or tested before fully implementing it in k6

Comments

@mstoykov
Copy link
Contributor

mstoykov commented Mar 9, 2022

Now that we have event loops and once #2423 is done, it is a good idea to start experimenting and working on making our APIs use it.

A good candidate is k6/ws which currently has its own event loop. But there is actually a specification about websocket API in browsers.

The idea here is not to implement the whole specification. It's mostly to see whether it's possible and whether that will be beneficial for k6. It's also good idea to keep in mind issues around websockets

This is very likely to not ever be merged in k6, so again, its should not be perfect or complete.

@mstoykov mstoykov added the evaluation needed proposal needs to be validated or tested before fully implementing it in k6 label Mar 9, 2022
@mstoykov mstoykov self-assigned this Mar 9, 2022
@mstoykov
Copy link
Contributor Author

PoC extension can be found here

@mstoykov
Copy link
Contributor Author

The extension has been implemented and in the open for a while. It even was one of the first experimental modules added.

While there is still work on it to make it stable and remove it from experimental - that should be discussed in a different issue.

Given that I am closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
evaluation needed proposal needs to be validated or tested before fully implementing it in k6
Projects
None yet
Development

No branches or pull requests

1 participant