TsgcWSPClient_STOMP_ActiveMQ › Events › OnActiveMQReceipt
Fires when a RECEIPT frame is received, confirming that a prior client frame requesting a receipt has been processed by ActiveMQ.
property OnActiveMQReceipt: TsgcWSActiveMQSTOMPReceiptEvent;
// TsgcWSActiveMQSTOMPReceiptEvent = procedure(Connection: TsgcWSConnection; Headers: TsgcWSActiveMQSTOMPHeadersReceipt) of object
—
Raised when the ActiveMQ broker acknowledges a client frame (SEND, SUBSCRIBE, UNSUBSCRIBE, ACK, NACK, BEGIN, COMMIT, ABORT, DISCONNECT) that included a "receipt" header. Because STOMP is stream-based, a RECEIPT is a cumulative acknowledgment — all previous frames have also been received by the broker. Parameters:
procedure TForm1.ActiveMQReceipt(Connection: TsgcWSConnection;
Headers: TsgcWSActiveMQSTOMPHeadersReceipt);
begin
Memo1.Lines.Add('Receipt confirmed: ' + Headers.ReceiptId);
end;