RPC library between client (WASM/browser) and web server?

I'm looking for a library that enables RPC between the browser and web server: in my case the browser would be calling functions that execute on the server.

Ideally any function signature could be supported, though based on past experience in other languages, I can understand if there are restrictions.

The most widely used RPC library is tonic.

1 Like

I think tarpc looks appealing for my use case due to this reason:

tarpc differentiates itself from other RPC frameworks by defining the schema in code, rather than in a separate language such as .proto. This means there's no separate compilation process, and no context switching between different languages.

1 Like