PushSubscription
public struct PushSubscription : Codable, Sendable
Represents a subscription to the push streaming server.
-
Undocumented
Declaration
Swift
public init(endpoint: String, alerts: Alerts, serverKey: String)
-
Where push alerts will be sent to.
Declaration
Swift
public var endpoint: String
-
Which alerts should be delivered to the endpoint.
Declaration
Swift
public var alerts: Alerts
-
The streaming server’s VAPID key.
Declaration
Swift
public var serverKey: String