Skip to content

Conversation

WebReflection
Copy link
Contributor

Description

This MR adds a feature to pass onopen, onmessage, onerror and onclose listeners directly to the web socket once it gets initialized.

Changes

  • optionally accepts onopen, onmessage, onerror and onclose as kw arguments and directly set this while initializing the web socket
  • test everything is fine

Checklist

  • All tests pass locally
  • I have updated CHANGELOG.md
  • I have created documentation for this(if applicable)

@WebReflection WebReflection merged commit c49cb92 into pyscript:main May 3, 2024
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.

3 participants