14 lines
No EOL
330 B
Protocol Buffer
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) {}
|
|
} |