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) {} }