overflow_api_service/ws/ws.proto

25 lines
399 B
Protocol Buffer
Raw Normal View History

2017-06-27 10:50:49 +00:00
syntax = "proto3";
package echoserver;
import "google/api/annotations.proto";
message WSRequest {
string msgType = 1;
string userId = 2;
string msg = 3;
}
message WSResponse {
string msgType = 1;
string userId = 2;
string msg = 3;
}
service WebSocketService {
rpc Test(stream WSRequest) returns (stream WSResponse) {
option (google.api.http) = {
get: "/ws"
};
}
}