Skip to content

[WASM] Not receiving websocket messages #19

Closed

Description

@sabin26

Describe the bug
WebSocket message is received on VM & JS environments but not on WASM.

i.e. webSocketClient.stream.json or webSocketClient.stream.text or webSocketClient.stream.bytes doesn't emit any data when flutter app is compiled to WebAssembly

Expected behavior
WebSocket message is received.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome

Activity

  1. PlugFox commented on Oct 15, 2024

    @PlugFox
    Owner

    Yes, wasm is a pretty fresh compilation target; I'll take a look at that problem in the near future.

  2. self-assigned this
    on Oct 15, 2024
  3. pinned this issue on Oct 15, 2024
  4. PlugFox commented on Nov 12, 2026

    @PlugFox
    Owner

    Fixed in 2.0 (branch rewrite, ships with 2.0.0-dev.1). The browser transport was rewritten on package:web and dart:js_interop, and messages are received under dart2wasm: the full browser suite, including end-to-end tests against a real server (text, binary, JSON, large and fragmented messages), runs in Chrome under both dart2js and dart2wasm on every CI run (web_server_test.dart, web_transport_test.dart).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions