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

js/ws: modulev2 migration #2232

Merged
merged 1 commit into from Nov 23, 2021
Merged

js/ws: modulev2 migration #2232

merged 1 commit into from Nov 23, 2021

Conversation

codebien
Copy link
Collaborator

@codebien codebien commented Nov 9, 2021

js/ws module migration implementing the ModuleV2 API.

The Connect method requires some refactoring to remove the linter issues (too many statements and cyclomatic complexity). I tried to fix it directly here but from my exploration, it requires too many changes compared to this, so I would prefer to have a separated PR for refactoring instead unique one.

@codebien codebien self-assigned this Nov 9, 2021
@codebien codebien marked this pull request as ready for review November 10, 2021 08:03
@codebien codebien marked this pull request as draft November 10, 2021 08:38
@codebien codebien marked this pull request as ready for review November 10, 2021 09:38
@codebien
Copy link
Collaborator Author

We need to fix ./samples/websocket.js but in the meanwhile the ws version of https://test-api.k6.io can be used.

imiric
imiric previously approved these changes Nov 10, 2021
Copy link
Contributor

@imiric imiric left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Agree with refactoring Connect in a separate PR. The ws package is long overdue for some cleanup.

@na-- na-- added this to the v0.36.0 milestone Nov 11, 2021
@codebien codebien changed the title ws: modulev2 migration js/ws: modulev2 migration Nov 16, 2021
@na-- na-- requested review from oleiade and mstoykov and removed request for inancgumus November 22, 2021 14:55
Copy link
Member

@oleiade oleiade left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻 🐻

@codebien codebien merged commit 02dee67 into master Nov 23, 2021
@codebien codebien deleted the ws-modulev2 branch November 23, 2021 11:55
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.

None yet

5 participants