How do you use IPC with Iced? #1614
Unanswered
patientplatypus6
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Look at the websocket example. You want to create a subscription that connects to external data, and your then your subscription and app can communicate via messages |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So iced runs it's own process that requires the main thread. I want to use
Servo/ipc_channel
to send data between several processes and I want iced rust to be able to access that data. In a spawned process a server is able to successfully send data to a GUI of iced/rust, and I can also send data between the main server and the spawned GUI process. But I don't know how to access the mach_ports from inside the Iced/Rust application or send a channel through the App::run interface to access the data (I don't think that this is possible because of sandboxing requirements, but it was suggested by another dev).Here is the code I'm working with for the GUI page. Are there any suggestions? I think it would be important for this to be understood in order to make this library useful for other developers.
Beta Was this translation helpful? Give feedback.
All reactions