codemp/proto/session.proto
alemidev 4491482b0a feat: improved protocol definition
use session for authentication, then workspace to keep in sync and
subscribe to new buffers. Buffer service will dispatch live updates.
2022-07-30 14:35:38 +02:00

17 lines
359 B
Protocol Buffer

syntax = "proto3";
package session;
service Session {
rpc Create (SessionRequest) returns (SessionResponse);
rpc Join (SessionRequest) returns (SessionResponse);
rpc Leave (SessionRequest) returns (SessionResponse);
}
message SessionRequest {
optional string sessionKey = 1;
}
message SessionResponse {
string sessionKey = 1;
bool accepted = 2;
}