mraow/proto/chat.proto
Michael Zhang 7b4a511bdd rust
2023-05-04 20:57:10 -05:00

14 lines
No EOL
330 B
Protocol Buffer

syntax = "proto3";
message ChatMessage {
string from = 1;
string msg = 2;
string time = 3;
}
service ChatService {
rpc join(User) returns (JoinResponse) {}
rpc sendMsg(ChatMessage) returns (Empty) {}
rpc receiveMsg(Empty) returns (stream ChatMessage) {}
rpc getAllUsers(Empty) returns (UserList) {}
}