Skip to content

Conversation

@Fernando-hub527
Copy link
Contributor

What?

Ensure that all enums that can be used in the WebSocket module are correctly mapped.

Why?

According to issue #4540 , when using 'EventName.Open' in the script, an error was returned indicating that 'open' was undefined.

Checklist

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

Checklist: Documentation (only for k6 maintainers and if relevant)

Please do not merge this PR until the following items are filled out.

  • I have added the correct milestone and labels to the PR.
  • I have updated the k6-documentation: grafana/k6-docs#PR-NUMBER
  • I have updated the TypeScript definitions: grafana/k6-DefinitelyTyped#PR-NUMBER
  • I have updated the release notes: link

Related PR(s)/Issue(s)

#4540

@Fernando-hub527 Fernando-hub527 requested a review from a team as a code owner March 12, 2025 00:54
@Fernando-hub527 Fernando-hub527 requested review from joanlopez and oleiade and removed request for a team March 12, 2025 00:54
@CLAassistant
Copy link

CLAassistant commented Mar 12, 2025

CLA assistant check
All committers have signed the CLA.

@oleiade
Copy link
Contributor

oleiade commented Mar 26, 2025

Hey @Fernando-hub527 👋🏻

Thanks for putting the time and effort in doing this. I've commented on the original issue, and will wait for an answer there before considering reviewing and merging this 🙇🏻

@oleiade
Copy link
Contributor

oleiade commented Apr 14, 2025

Hey @Fernando-hub527 👋🏻

Apologies for the delay, but after clarifications in the issue, it seems this PR is not needed, as it was found out that EventName was really a concept there to support the DefinitelyTyped type definitions, and shouldn't be introduced in the Go code itself. As far as we can tell anyway.

I'll close this, but feel free to reopen in the future if relevant, and thanks a lot again for your contribution nonetheless 🙇🏻

@oleiade oleiade closed this Apr 14, 2025
@Fernando-hub527 Fernando-hub527 deleted the fix/eventName_returns_error branch May 13, 2025 22:16
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.

4 participants