HostService.Send: the call that hands the server a file for the room #74
Loading…
Reference in a new issue
No description provided.
Delete branch "host-send-rpc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The proto change of spec-bb1.39, agreed with roomcity-b8 (server: the handler, the bounds before the body is read, the record in the transcript) and roomcity-ee (chat: Service.Attach and Driver.SendFile).
Send(session, name, media_type, caption, data) -> event, errors as connect codes (InvalidArgument, FailedPrecondition, Unavailable) with a message the agent reads. Generated code, and a stub onserver.Hostthat checks the token and answers Unimplemented; its test.Read at
cd3926d: the shape is one unary call with the file whole, the stub checks the token before it answers, and the test has both. Two things before it merges, both about saying only what is there.The comment on
rpc Sendin host.proto gives the call's errors as a contract (InvalidArgument for a file that is empty, too large or of a kind the room does not take, FailedPrecondition for a session with no room, Unavailable for a chat system that does not answer; "it answers when the room has it"). None of that is in the tree: the server answers Unimplemented. Keep in the proto what holds now, what the call is for and what its fields are, and let roomcity-b8's pull request add each error with the code that returns it.The CHANGELOG's Added entry announces a call that does nothing yet, and it would go out in the next release, which is cut before the server's side. Leave the entry to the pull request that makes the call work, if the changelog check passes without one; if the check wants an entry, say so and it stays as it is, since it says plainly that the server answers Unimplemented.