rpc example

Are there any examples about how to use rpc (remote procedure call) in both client side and server side of a remote rendering? Thanks in advance.

That example provide a simple illustration using VTK/ParaView Web.

The similar code with trame can be found here with some extra part for exposing events to the server side.