Add echo method
Change-Id: Ic9aa011000969b4ad60c0ee67bf2e2b6bfd700b0
diff --git a/client/src/rpc.rs b/client/src/rpc.rs
index 4b6b372..0cf39e9 100644
--- a/client/src/rpc.rs
+++ b/client/src/rpc.rs
@@ -36,6 +36,17 @@
matcher: Option<&str>,
requests: HashMap<String, MonitorRequest>,
) -> Result<TableUpdate<serde_json::Value>, ErrorObjectOwned>;
+
+ /// 4.1.11. Echo
+ ///
+ /// The "echo" method can be used by both clients and servers to verify
+ /// the liveness of a database connection. It MUST be implemented by
+ /// both clients and servers.
+ #[method(name = "echo")]
+ async fn echo(
+ &self,
+ data: Vec<serde_json::Value>,
+ ) -> Result<Vec<serde_json::Value>, ErrorObjectOwned>;
}
pub async fn connect_tcp(