TsgcWSPServer_sgc › Properties › QoS
Quality of Service options (Level, Interval, Timeout) for acknowledged delivery.
property QoS: TsgcWSQoS_Options read FQoS write SetQoS;
—
Three delivery guarantees are supported, equivalent to the MQTT model:
On Level 2 the PubRel that releases a message is accepted only from the connection that published it, and any Level 2 message still waiting for its PubRel is discarded when that connection closes. One client cannot release, or replay, a message published by another.
Interval controls how often the internal QoS timer scans pending messages; Timeout is the number of seconds without acknowledgement after which a message is resent to the client.
oProtocol.QoS.Level := qosLevel1;
oProtocol.QoS.Interval := 60;
oProtocol.QoS.Timeout := 300;