Options

public struct Options

Custom options that can be provided when creating Presence

Example:

let options = Options(events: [.state: "my_state", .diff: "my_diff"])
let presence = Presence(channel, opts: options)
  • Default set of Options used when creating Presence. Uses the phoenix events “presence_state” and “presence_diff”

    Declaration

    Swift

    public static let defaults: Presence.Options