InitServerDownStream (for Internal Use Only)
Description
Subscribes to messages from the server.
Prototype
rpc InitServerDownStream(stream Ack) returns (stream Message)
Input Parameters
Parameter |
Type (Defined by Protobuf) |
Description |
|---|---|---|
stream Ack |
message MessageHeader { string uuid = 1; string mtype = 2; bool sync = 3; Position src = 4; Position dst = 5; int64 createTime = 6; } message Message { MessageHeader header = 1; string body = 2; } |
uuid: message UUID mtype: message type sync: whether to send messages synchronously src: message source dst: message destination createTime: message creation timestamp header: message header body: message body |
Return Value
Return Value |
Type (Defined by Protobuf) |
Description |
|---|---|---|
stream Message |
message Ack { string uuid = 1; uint32 code = 2; Position src = 3; } |
uuid: consistent with Message.uuid code: return code
src: role location |
Parent topic: Internal TaskD APIs