codemp/proto/cursor_service.proto

14 lines
389 B
Protocol Buffer
Raw Normal View History

2023-12-18 23:36:15 +01:00
syntax = "proto2";
package cursor_service;
import "cursor.proto";
import "user.proto";
2023-12-18 23:36:15 +01:00
// handle cursor events and broadcast to all users
service Cursor {
// send cursor movement to server
rpc Moved (cursor.CursorEvent) returns (cursor.MovedResponse);
2023-12-18 23:36:15 +01:00
// attach to a workspace and receive cursor events
rpc Listen (user.UserIdentity) returns (stream cursor.CursorEvent);
2023-12-18 23:36:15 +01:00
}