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

Updating examples #710

Merged
merged 2 commits into from
Feb 13, 2025
Merged

Updating examples #710

merged 2 commits into from
Feb 13, 2025

Conversation

a-alak
Copy link
Contributor

@a-alak a-alak commented Feb 13, 2025

Changes included in this PR

Updates to the example usage of the library (doc update).

Current behavior

#708 and #709 describe how the current examples in the documentation fail due to 1) they still use the "Payload" suffix on payload data classes, this is not part of the latest version of this library 2) breaking changes from the WebSockets library, primarily regarding the path parameter passed to the connection handler and where to find the request headers.

New behavior

This PR updates the example code both for v16 and v201, so that the payload dataclass is correct and is compatible with the latest websockets library.

Impact

Only changes to documentation. However the documentation currently wouldn't support older versions of websockets library.

Checklist

  1. Does your submission pass the existing tests?
  2. Are there new tests that cover these additions/changes?
  3. Have you linted your code locally before submission?

Copy link
Collaborator

@proelke proelke left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@proelke proelke merged commit 2607f8c into mobilityhouse:master Feb 13, 2025
8 checks passed
@a-alak a-alak deleted the updating-examples branch February 13, 2025 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants