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

Experimental Websockets merge #4131

Open
wants to merge 96 commits into
base: master
Choose a base branch
from
Open

Experimental Websockets merge #4131

wants to merge 96 commits into from

Conversation

mstoykov
Copy link
Contributor

What?

Move k6/experimental/websockets code under k6.

Why?

As part of the removing from experiimental this is required.

Note that this change does not change anything else just brings the code in

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

mstoykov and others added 30 commits April 21, 2022 12:58
Basic Autobahn test suite
Various fixes for races and leaking goroutines
olegbespalov and others added 21 commits August 24, 2023 16:24
This commit also includes updates of transilient dependencies, which fix
swcurity-related concerns.
* feat: allow name tag, and overwrite url tag with name tag if set

* fix: remove unnecessary assignment on name tag. use same value for both url and name tags.
* Warn on not setting binarytype

This is the first part of #35.

But even if #35 is not finished after this warning is an error we can
safely move this extension in k6.
We are moving to a fork of goja under grafana org called sobek.

More info in:
- #3772
- #3773
* Add support for Blob

* Make 'Blob instanceof Blob' be true

* Split subtests into separated tests

* Error out on non-defined binaryType

* Unexport 'blob' Go struct

* Fix linter complaints

* Use 'must' helper to set obj props

* Add support for Blob.stream()

* Add some tests for Blob's public methods

* Update README.md with Blob support

* Tidy up Go module

* Fix linter complaints

* Downgrade modules upgraded by mistake

* Remove toolchain directive from go.mod

* Undo deps update

* Apply suggestions from code review

* Extend the support for Blob

* Support .send() for Blob

* Support Blob() for Blob and DataView

* Stop relying on '_ref' internal attribute

* Fix linter complaints

* Fix TestBlob/ArrayBuffer

* Make 'isBlob' work independently of 'rt.GlobalObject()'
for some reason - likely a bug in goja/Sobek returning a type that is
uint8 under the hood (or int) doesn't actually get to be a number in js.

The current fix casts the ReadyState type to uint8 so that Sobek handles
it correctly.

Fixes #79
…5ce28bcdb9806aa3a229f80e17f22'

git-subtree-dir: js/modules/k6/experimental/websockets
git-subtree-mainline: 053f3a2
git-subtree-split: 52b1ef8
@mstoykov mstoykov added this to the v0.57.0 milestone Dec 18, 2024
@mstoykov mstoykov requested a review from a team as a code owner December 18, 2024 14:26
@mstoykov mstoykov requested review from inancgumus and ankur22 and removed request for a team December 18, 2024 14:26
@mstoykov mstoykov changed the title Websockets merge Experimental Websockets merge Dec 18, 2024
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.

7 participants