mraow/proto/chat.proto

14 lines
330 B
Protocol Buffer
Raw Normal View History

2023-05-05 01:57:10 +00:00
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) {}
}