Replies: 3 comments 11 replies
-
Hey @Yahud100, yes, see the code and comments in https://github.com/eclipse-theia/theia/blob/master/packages/core/src/node/messaging/connection-container-module.ts. You will find a few examples of that code used throughout our codebase. Note that frontend services can only be called from backend services that are scoped to that RPC connection. |
Beta Was this translation helpful? Give feedback.
-
Hi @msujew thanks for the explanation. I have a question: if I create a class implementing BackendApplicationContribution and this class is scoped to an RPC connection as per the example you mentioned, can I call these endpoints through Postman? I'm having trouble because the lifecycle hooks of my implementation class are not executing during debugging, and I'm unable to call the endpoints. |
Beta Was this translation helpful? Give feedback.
-
Hey @msujew, I’m able to call endpoints and execute commands using the following code:
Will this approach raise any security concerns? |
Beta Was this translation helpful? Give feedback.
-
is this possible to get a proxy object for frontend classes similar to creating backend proxy objects and using them in frontend using json-rpc
Beta Was this translation helpful? Give feedback.
All reactions