k6 icon indicating copy to clipboard operation
k6 copied to clipboard

xk6 extensions experiment: websocket API

Open mstoykov opened this issue 3 years ago • 1 comments

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 avatar Mar 09 '22 10:03 mstoykov

PoC extension can be found here

mstoykov avatar Apr 21 '22 15:04 mstoykov

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

mstoykov avatar Apr 26 '23 13:04 mstoykov