ChatService.proto 205 Bytes
Newer Older
Gabriele Civitarese's avatar
Gabriele Civitarese committed
1 2 3 4
syntax = "proto3";
package com.example.chat;

message ChatMessage {
5

Gabriele Civitarese's avatar
Gabriele Civitarese committed
6 7 8 9 10 11 12 13 14
    string from = 1;
    string message = 2;

}

service ChatService {

    rpc chat(stream ChatMessage) returns (stream ChatMessage);
}