I'm trying to create a Channel on the backend and then pass it to the frontend as the result of a command, per this comment
https://github.com/tauri-apps/tauri/discussions/12752#discussioncomment-13265257
However, it just gets serialized as a string like __CHANNEL__:0.
Is there an easy way to convert this back into a usable channel in the frontend (ts/js)?
Followup, I had a look at the internals of how the Channel is implemented on the Rust side. Even if there was a way to reconstruct the channel from the ID, would I have to create with custom logic like in
https://github.com/tauri-apps/tauri/blob/152d971bcd6c1fdc5716f7d5417dd4df5ce7479f/crates/tauri/src/ipc/channel.rs#L133
or use that type directly?
Build smaller, faster, and more secure desktop and mobile applications with a web frontend. - tauri-apps/tauri