Skip to content

Commit

Permalink
Enabling EventEngine for Presence & Subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
jguz-pubnub committed Feb 20, 2024
1 parent 0c8c389 commit 36dcec4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/PubNub/PubNubConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public struct PubNubConfiguration: Hashable {
supressLeaveEvents: Bool = false,
requestMessageCountThreshold: UInt = 100,
filterExpression: String? = nil,
enableEventEngine: Bool = false,
enableEventEngine: Bool = true,
maintainPresenceState: Bool = true
) {
guard userId.trimmingCharacters(in: .whitespacesAndNewlines).count > 0 else {
Expand Down Expand Up @@ -226,7 +226,7 @@ public struct PubNubConfiguration: Hashable {
///
/// This switch can help you verify the behavior of the PubNub SDK with the new engine enabled
/// in your app. It will default to true in a future SDK release.
public var enableEventEngine: Bool = false
public var enableEventEngine: Bool = true
/// When `true` the SDK will resend the last channel state that was set using `PubNub.setPresence`.
/// Applies only if `heartbeatInterval` is greater than 0 and `enableEventEngine` is true
public var maintainPresenceState: Bool = false
Expand Down

0 comments on commit 36dcec4

Please sign in to comment.