Webhook
public struct Webhook : Codable
A representation of a Webhook that contains an array of events
related to changes
in the internal state of a Pusher Channels application, which were received as a POST request
to a user-specified Webhook URL.
The contained events have been verified as geniune Webhooks that were received directly from Pusher.
-
The
Date
that Pusher servers originally created the Webhook request.Declaration
Swift
public let createdAt: Date
-
The events contained within the Webhook request.
Declaration
Swift
public let events: [WebhookEvent]
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws