Skip to content

Add websockets 16.0 compatibility#120

Open
DontFretBrett wants to merge 4 commits intocoinbase:masterfrom
DontFretBrett:websockets-16-compatibility
Open

Add websockets 16.0 compatibility#120
DontFretBrett wants to merge 4 commits intocoinbase:masterfrom
DontFretBrett:websockets-16-compatibility

Conversation

@DontFretBrett
Copy link
Copy Markdown

@DontFretBrett DontFretBrett commented Feb 14, 2026

This PR adds compatibility with websockets 16.0 which includes breaking changes:

Changes

  1. Parameter name change: extra_headersadditional_headers in websocket connection
  2. API change: websocket.open attribute → websocket.state == websockets.State.OPEN
  3. SSL context: Updated to use ssl.create_default_context() instead of deprecated ssl.SSLContext()
  4. Dependency updates:
    • websockets: <14.0<17.0
    • cryptography: >=42.0.4>=46.0.5
    • requests: >=2.31.0>=2.32.5
    • PyJWT: >=2.8.0>=2.11.0
  5. Dependabot configuration: Added .github/dependabot.yml for automated dependency updates

Testing

  • Basic functionality tested and imports work correctly
  • WebSocket connections established successfully
  • All existing tests pass with updated dependencies

This update is important for users who need to upgrade to websockets 16.0 for security updates and new features. The Dependabot configuration will help maintain dependency freshness going forward.

- Configured to run weekly on Mondays at 9am PST
- Groups all dependency updates into a single PR
- Ignores major version updates (require manual review)
- Adds appropriate labels for automated PRs
- Update all dependencies to their latest compatible versions
- Fix websockets 16.0 compatibility:
  - Change extra_headers → additional_headers parameter
  - Change open attribute check → state == websockets.State.OPEN
  - Fix SSL context deprecation warning
- Update requirements constraints for websockets (<17.0)
- Tested basic functionality and imports work correctly
- Apply black 26.1.0 formatting changes
- Apply isort 7.0.0 import sorting
- Fixes CI formatting check failures
- Fix formatting on all project files (not virtual env)
- Ensure CI formatting check passes
@cb-heimdall
Copy link
Copy Markdown

cb-heimdall commented Feb 14, 2026

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

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