SubscribeResponse: Message<"virtufin.SubscribeResponse"> & {
    batch: Uint8Array;
    cloudevent?: CloudEvent;
    live: boolean;
    topic: string;
}

Type declaration

  • batch: Uint8Array

    Set instead of cloudevent, and only on a call that asked for accept_batches: an encoded io.cloudevents.v1.CloudEventBatch holding the topic's events of one stream entry, in order. Bytes rather than the message type, so that neither the gateway nor a client's stub parses the events it only passes on; parse it with CloudEventBatch where the events are needed.

    from field: bytes batch = 4;

  • Optionalcloudevent?: CloudEvent

    from field: io.cloudevents.v1.CloudEvent cloudevent = 2;

  • live: boolean

    Set only on the first response of a call that asked for announce_live: the subscription is live. Carries no topic and no event.

    from field: bool live = 3;

  • topic: string

    from field: string topic = 1;

from message virtufin.SubscribeResponse