WebhookEvent
public struct WebhookEvent : WebhookEventRecord, Codable
An event that is contained within a received Webhook
.
-
The event type.
Declaration
Swift
public let eventType: WebhookEventType
-
The channel relating to the Webhook event.
Declaration
Swift
public let channel: Channel
-
The identifier of the socket that sent the event (only set if
eventType
isclientEvent
).Declaration
Swift
public let socketId: String?
-
The user identifier associated with the socket that sent the event (only set if
channel
is of typepresence
).Declaration
Swift
public let userId: String?
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws