You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set up Pusher in an iOS app written in Swift, and I've noticed that the method bindToEventNamed:handleWithBlock: is not visible in PTPrivateChannel. I've managed to solve it by additionally importing PTPusherEventDispatcher.h apart from <Pusher/Pusher.h>.
Is this a Swift bug or something that should be done differently in libPusher? I think the issue is that it doesn't see those methods because they return PTPusherEventBinding, and that class is only included there via @class.
The text was updated successfully, but these errors were encountered:
Interesting, I think your suspicion might be correct.
PTPusherEventDispatcher is not part of the public API so I should probably break out the PTPusherEventBinding class into a separate header if I want to make it public - but I don't think I ever intended it to be.
I should change the binding methods to return id instead (similar to how NSNotificationCenter does) as the binding objects are mostly opaque however they do have two methods, eventName and isValid; I need to decide if these methods are useful enough to make them public.
Hi,
I'm trying to set up Pusher in an iOS app written in Swift, and I've noticed that the method
bindToEventNamed:handleWithBlock:
is not visible inPTPrivateChannel
. I've managed to solve it by additionally importingPTPusherEventDispatcher.h
apart from<Pusher/Pusher.h>
.Is this a Swift bug or something that should be done differently in libPusher? I think the issue is that it doesn't see those methods because they return
PTPusherEventBinding
, and that class is only included there via@class
.The text was updated successfully, but these errors were encountered: