mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 23:34:49 +01:00
13 lines
389 B
Protocol Buffer
13 lines
389 B
Protocol Buffer
syntax = "proto2";
|
|
|
|
package cursor_service;
|
|
import "cursor.proto";
|
|
import "user.proto";
|
|
|
|
// handle cursor events and broadcast to all users
|
|
service Cursor {
|
|
// send cursor movement to server
|
|
rpc Moved (cursor.CursorEvent) returns (cursor.MovedResponse);
|
|
// attach to a workspace and receive cursor events
|
|
rpc Listen (user.UserIdentity) returns (stream cursor.CursorEvent);
|
|
}
|