security-union / yew-webtransport

rust webtransport support for the yew framework
MIT License
58 stars 3 forks source link

decouple `WebTransport` functionality from Yew #10

Closed databasedav closed 8 months ago

databasedav commented 1 year ago

enables using this library with other rust wasm frontend frameworks

darioalessandro commented 1 year ago

Hey @databasedav you can use wasm directly for this: https://github.com/rustwasm/wasm-bindgen/blob/main/crates/web-sys/src/features/gen_WebTransport.rs would that work for you? which kind of abstraction are you looking for?

databasedav commented 1 year ago

@darioalessandro at a high level, it would certainly include removing the yew dependency, which it looks like is being used for channels and callbacks, could we replace these with the oneshot channel in futures (which is already a dependency) and impl Fn? this would then make https://github.com/security-union/yew-webtransport/issues/11 easier

darioalessandro commented 8 months ago

I do not know what that serves, at that point I recommend using the wasm-bindgen directly?

darioalessandro commented 8 months ago

I would like you to share more specifics