Skip to content

Conversation

WebReflection
Copy link
Contributor

Description

This MR fixes #2365 by implementing a better way to add, and understand, WebSocket listeners + it converts kw args for PyWorker directly.

Changes

  • add binaryType = 'arraybuffer' as WebSocket default
  • use a better way to add listeners either as kw args or added after WebSocket creation
  • convert automatically kw received for PyWorker as JS options/config

Checklist

  • I have checked make build works locally.
  • I have created / updated documentation for this change (if applicable).

@WebReflection WebReflection merged commit a129be8 into pyscript:main Jul 24, 2025
2 checks passed
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.

WebSocket & PyWorker from Python needs improvements
2 participants