Replies: 1 comment 5 replies
-
Hey @dmm9, this is possible, but non-trivial. We use such a mechanism when sending file system events to the frontend. See here for some code. You can probably adapt it to your use case. Note that Theia doesn't have "the" frontend - a backend can have a number of concurrently connected frontends. I.e. in Electron (the same is true for the browser), any single window still talks to the same backend. It's useful to keep that in mind when dealing with data sent from the backend to a frontend. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to send an event from the backend to the frontend, and I don't know how. The use case: I have an HTTP endpoint on the backend, and I want to pass the data received on this endpoint to the frontend. RPC seems to be triggered always by the frontend. And Emitters seem not to jump between server and client. Am I mistaken? How can this be realized?
Beta Was this translation helpful? Give feedback.
All reactions