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

feat(websocket-websys): add support for different WASM environments #4889

Merged
merged 2 commits into from
Nov 21, 2023

Commits on Nov 20, 2023

  1. fix(websocket-websys): Add support for different WASM environments

    Add support different WASM environments (such as workers, NodeJS)
    that don't have a `window` global. This is done by introducing a
    `WebContext` `enum` that abstracts and detects the `Window` vs the
    `WorkerGlobalScope` API.
    This is done due to the `web-sys` lack of interest to support this
    (see discussion in
    [this issue](rustwasm/wasm-bindgen#1046)).
    jsdanielh committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    3a02156 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0dd45e3 View commit details
    Browse the repository at this point in the history