feat: added Ping/Pong rpc

This commit is contained in:
SoXX 2024-03-05 20:43:49 +01:00
parent 5c6b67694d
commit ba8940c3c4

View File

@ -6,6 +6,15 @@ service PlugConnector {
rpc TaskStart(PlugTaskCreation) returns (PlugTaskStatus); rpc TaskStart(PlugTaskCreation) returns (PlugTaskStatus);
rpc TaskStatus(PlugTask) returns (PlugTaskStatus); rpc TaskStatus(PlugTask) returns (PlugTaskStatus);
rpc TaskCancel(PlugTask) returns (PlugTaskStatus); rpc TaskCancel(PlugTask) returns (PlugTaskStatus);
rpc Ping(PingRequest) returns (PongResponse); // Added Ping endpoint
}
message PingRequest {
string message = 1; // Optional message field, can be removed if not needed
}
message PongResponse {
string message = 1; // Optional message field, can be removed if not needed
} }
message PlugTaskStatus { message PlugTaskStatus {