Call methods

Can the backend call methods directly from the frontend

@kingkiller the frotend and backend cannot directly communicate, the way we do so is through JSON-RPC when required.

You can find examples on how to do so here:

Thank you for your reply. In the example, the frontend requests the backend through JSON -RPC, but how does the backend actively request the frontend

Which frontend? All or just one of them? Most likely, you’ll need connection-based scoping for that. See here: Multiple clients for a backend services (JSON-RPC).

Here is an example. The topic is slightly different, but it uses connection-based scoping for dependency injection.