mirror of
https://github.com/hexedtech/codemp.git
synced 2024-10-23 02:09:20 +02:00
alemidev
4491482b0a
use session for authentication, then workspace to keep in sync and subscribe to new buffers. Buffer service will dispatch live updates.
17 lines
359 B
Protocol Buffer
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;
|
|
}
|