overflow_api_service/ws/ws.proto
insanity@loafle.com eb7f9e67b5 chaos
2017-06-27 19:50:49 +09:00

25 lines
399 B
Protocol Buffer

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"
};
}
}