Communications between Python/Rust are implemented by using Protocol Buffer (rslib/backend.proto). It seems design don’t follow gRPC protocol, so we can’t capture messages by intercept packages?
https://docs.rs/prost-build/0.7.0/prost_build/trait.ServiceGenerator.html
rslib/build/protobuf.rs
pylib/rsbridge/lib.rs