Skip to content

Commit 7cbbed9

Browse files
authored
Merge pull request #163 from pusher/add-objc-bridged-connection-properties
Add OCReconnectAttemptsMax and OCMaxReconnectGapInSeconds
2 parents ee85321 + 37457a3 commit 7cbbed9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Sources/ObjectiveC.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,26 @@ import Foundation
4040
}
4141
}
4242

43+
@objc public extension PusherConnection {
44+
public var OCReconnectAttemptsMax: NSNumber? {
45+
get {
46+
return reconnectAttemptsMax as NSNumber?
47+
}
48+
set(newValue) {
49+
reconnectAttemptsMax = newValue?.intValue
50+
}
51+
}
52+
53+
public var OCMaxReconnectGapInSeconds: NSNumber? {
54+
get {
55+
return maxReconnectGapInSeconds as NSNumber?
56+
}
57+
set(newValue) {
58+
maxReconnectGapInSeconds = newValue?.doubleValue
59+
}
60+
}
61+
}
62+
4363
@objc public extension PusherClientOptions {
4464
public convenience init(
4565
ocAuthMethod authMethod: OCAuthMethod,

0 commit comments

Comments
 (0)