Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription does not work using rpc calls #133

Open
eneufeld opened this issue Jan 16, 2023 · 1 comment
Open

Subscription does not work using rpc calls #133

eneufeld opened this issue Jan 16, 2023 · 1 comment
Labels
bug Something isn't working modelserver EMF.cloud Model Server Theia

Comments

@eneufeld
Copy link
Contributor

If you want to subscribe to changes from a modelserverclient which is exposed to the frontend using theias proxy, the subscriptions do not work.
The reason is probably that the registered callback is lost and must be offered differently.

@eneufeld eneufeld added bug Something isn't working modelserver EMF.cloud Model Server Theia labels Jan 16, 2023
@ndoschek
Copy link
Contributor

ndoschek commented Feb 2, 2023

To subscribe and receive all notifications on the frontend, it is recommended to use the concept of the ModelServerFrontendClient.
It is bound by default for v2 and can be accessed on the frontend by injecting the
ModelServerSubscriptionClient.

As an example, please see the usage of the subscription service in ApiTestMenuContribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working modelserver EMF.cloud Model Server Theia
Projects
None yet
Development

No branches or pull requests

2 participants