https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.MessagePort.html to two channels

This is not difficult to write on my own, but I want to check if an existing crate does this.

Is there a way to transform MessagePort in web_sys - Rust into two async channels ?

1 one async channel, the input channel, is the msgs to run postMessage on the MessagePort for

  1. the other async channel just collects msgs from on_message of the MessagePort

Basically it takes the callback based API and turns it async.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.