diff --git a/Sources/PubNub/KMM/Wrappers/PubNubSubscriptionObjC.swift b/Sources/PubNub/KMM/Wrappers/PubNubSubscriptionObjC.swift index 684886c9..f1e86be4 100644 --- a/Sources/PubNub/KMM/Wrappers/PubNubSubscriptionObjC.swift +++ b/Sources/PubNub/KMM/Wrappers/PubNubSubscriptionObjC.swift @@ -27,6 +27,12 @@ public class PubNubSubscriptionObjC: NSObject { self.subscription = Subscription(entity: entity.entity) self.receivePresenceEvents = receivePresenceEvents } + + @objc + public init(entity: PubNubEntityRepresentableObjC) { + self.subscription = Subscription(entity: entity.entity) + self.receivePresenceEvents = false + } @objc public func dispose() {