We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb31835 commit 5b6ee3dCopy full SHA for 5b6ee3d
Sources/PaystackSDK/Core/Service/Subscription/PusherSubscriptionListener.swift
@@ -57,9 +57,13 @@ struct PusherSubscriptionListener: SubscriptionListener {
57
channel.bind(eventName: eventName, eventCallback: {
58
guard let stringData = $0.data else {
59
subscriptionResponse(.failure(.noData))
60
+ pusher.unsubscribe($0.channelName ?? "")
61
+ pusher.disconnect()
62
return
63
}
64
subscriptionResponse(.success(stringData))
65
66
67
})
68
69
0 commit comments