IRPCServerDataPush.OpenServerDataPush
Vault API / standard write session server streaming
Opens the session's push channel: a stream of requests and notifications from the server.
| Service | Server push MFiles.IRPCServerDataPush |
|---|---|
| gRPC method | /MFiles.IRPCServerDataPush/OpenServerDataPush |
| HTTP (mf-http-grpc) | POST /grpc/v1/open-server-data-push |
| Request | OpenServerDataPushRequest |
| Response | ServerDataPushItem |
| Book and level | Vault API, standard |
| Kind | write |
| Session | Required: the session ID from LogIn in the mfiles-session-id-bin metadata. |
| Idempotent | no |
| Returns metadata structure version | no |
| Streaming | server |
Remarks
- Requires a vault session in
mfiles-session-id-bin; without one the call fails withUNAUTHENTICATED. No special vault rights are needed. - The stream has no deadline on the server side and sends nothing while there is nothing to
push. It ends with status
OKwhen another stream is opened for the same session or when the session logs out. - Requests queued while no stream was open are sent first. A queued request whose waiting call
has already given up arrives with
response_id0. - See the service overview for the message types and the timing rules.
Request: OpenServerDataPushRequest
Request to open the server data push channel.
No fields.
Response: ServerDataPushItem
One push message from the server: a request or a notification for the client.
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
activity_id | string | The activity ID of the client call that caused the request, as a GUID string in braces. Use it to tie the request to the call that is waiting for it. A GUID of zeros for notifications that no call is waiting for. |
response_id | int32 | The ID to send back in SendDataPushResponse. Respond only to request types that need a response, and never when the ID is 0. |
request_data | ServerDataPushRequest | What the server asks for or tells. See ServerDataPushRequest. |
request_data.type | ServerDataPushRequestType | Request type.Values: SERVER_DATA_PUSH_REQUEST_TYPE_UNINITIALIZED (0), SERVER_DATA_PUSH_REQUEST_TYPE_ELECTRONIC_SIGNATURE_REQUEST (1), SERVER_DATA_PUSH_REQUEST_TYPE_EXTENSION_AUTHENTICATION_REQUEST (2), SERVER_DATA_PUSH_REQUEST_TYPE_OBJECTS_CHANGED_NOTIFICATION (3). |
request_data.data | ServerDataPushRequestUnion | The actual message data. |
request_data.data.electronic_signature_request | ElectronicSignatureRequest (oneof data) | Electronic signature request. |
request_data.data.extension_authentication_request | ExtensionAuthenticationRequest (oneof data) | Extension authentication request. |
request_data.data.objects_changed_notification | ObjectsChangedNotification (oneof data) | Objects changed notification. |