Whats the preferred way to send go routine/background task output to frontend? #2589
renepardon
started this conversation in
General
Replies: 1 comment 2 replies
-
You can check out how I'm doing it in my app There are a couple of other examples in that app where there is an bg task initialized from UI or not and that bg task send events to frontend to notify about any progress. I don't know if there are better ways to achieve it but for my purpose it's work pretty good Hope I've helped you |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to run multiple background tasks and send the output to the frontend to display those (e.g. cli output/stdout/stderr) and for displaying progress information for long running tasks.
What would be the preferred way? Creating a Websocket server or using IPC or polling through IPC?
Beta Was this translation helpful? Give feedback.
All reactions