Replies: 1 comment 2 replies
-
Idk why we have an ideas topic here tbh. Can you open a feature request issue instead please? |
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
-
It would be cool to add global event listener to catch every events and we seperate with if statements.
For example in this socketio repo for rust they add function named on_any. Purpose of
on_any
is to catch every events and process some calculations in there.Use case
How did i end up this idea
I have created socket server with python and connecting socket from rust. I just wanted to use tauri's listen and emit commands to handle my operations. for example
Websocket server sent event to rust socket client and i emitted to frontend using native functions. I Put
socket://
prefix to filter events maybe from frontend maybe at backend.for example from frontend.
Prefixes may be various. Socket was just an example. I use python for second backend because i might use pytorch etc. Maybe people like me using 2-3 backends, they can filter them without editing rust code to spesificly save/log that operation.
Beta Was this translation helpful? Give feedback.
All reactions