Instance Propertymochidev.swift-webpush 0.4.2WebPush
sendTimeout
A timeout before we abandon the connection due to messages not being sent.
var sendTimeout: Duration?
If nil
, no timeout will be used.
A timeout before we abandon the connection due to messages not being sent.
var sendTimeout: Duration?
s7WebPush0aB7ManagerC20NetworkConfigurationV11sendTimeouts8DurationVSgvp
What are these?3IOBY
If nil
, no timeout will be used.
import WebPush
struct NetworkConfiguration
The network configuration for a web push manager.
actor WebPushManager
A manager for sending push messages to subscribers.
@frozen struct Duration
A representation of high precision time.
init(retryIntervals: [Duration] = [.milliseconds(500), .seconds(2), .seconds(10)], alwaysResolveTopics: Bool = false, connectionTimeout: Duration? = nil, sendTimeout: Duration? = nil, confirmationTimeout: Duration? = nil, httpProxy: HTTPClient.Configuration.Proxy? = nil)
Initialize a new network configuration.
static let `default`: WebPushManager.NetworkConfiguration
var alwaysResolveTopics: Bool
A flag to automatically generate a random Topic
to prevent messages that are automatically retried from being delivered twice.
var confirmationTimeout: Duration?
A timeout before we abondon the connection due to the push service not sending back acknowledgement a message was received.
var connectionTimeout: Duration
A timeout before a connection is dropped.
var httpProxy: HTTPClient.Configuration.Proxy?
An HTTP proxy to use when communicating to a push service.
var retryIntervals: [Duration]
A list of intervals to wait between automatic retries.