Can anyone share a sample/quick-start theia extension that demonstrates frontend, backend and communicaition between frontend and backend? This would help us to quick start. Currently, we have a separate sample extensions for frontend and backend…
[original thread by rs]
Hello @che-theia-new you can find a good simple example of client-server communication over JSON-RPC in the built-in workspace extension:
workspace
JSON-RPC workspace interface https://github.com/theia-ide/theia/blob/master/packages/workspace/src/common/workspace-protocol.ts
set-up on frontend https://github.com/theia-ide/theia/blob/master/packages/workspace/src/browser/workspace-frontend-module.ts#L53-L56
set-up on backend https://github.com/theia-ide/theia/blob/master/packages/workspace/src/node/workspace-backend-module.ts#L29-L33
Also, there’s a good guide to learn more about JSON-RPC communication in Theia https://www.theia-ide.org/doc/Json_Rpc.html