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 ed66abd commit 9cf5308Copy full SHA for 9cf5308
Sources/PusherChannel.swift
@@ -157,6 +157,7 @@ open class PusherChannel: NSObject {
157
open func handleEvent(event: PusherEvent) {
158
if let eventHandlerArray = self.eventHandlers[event.eventName] {
159
for eventHandler in eventHandlerArray {
160
+ // swiftlint:disable:next force_cast
161
eventHandler.callback(event.copy() as! PusherEvent)
162
}
163
Sources/PusherGlobalChannel.swift
@@ -23,6 +23,7 @@ import Foundation
23
*/
24
internal func handleGlobalEvent(event: PusherEvent) {
25
for (_, callback) in self.globalCallbacks {
26
27
callback(event.copy() as! PusherEvent)
28
29
0 commit comments