-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] 1.0.0 release #34
Conversation
9e2a3e0
to
ee0186a
Compare
Amazing work @hamchapman. Was just wondering how I could access these. 👍 |
@ay8s I've fixed the |
Tidied up whitespace. Added licences where appropriate.
from presence channel members object.
Remove Cocoapods build steps for non-test targets
33fc13f
to
3566842
Compare
Perfect @hamchapman. Will give it a whirl tonight and let you know if I spot anything. 👍 |
Looking good from my end @hamchapman. I wonder if it's possible to make PresenceChannelMember hashable at all? Planning to store PresenceChannelMember's against views/names etc which adding would make super easy! |
Great - @ay8s would you be happy to create a PR for making |
Or is it maybe easier to just make the |
I think I might be able to simply use the user_id itself rather than need it to be hashable. I'm not running a server so don't quite have any other information in there to use. :) |
Currently we're just logging the error, but I need that at the client side. I thought about a delegate, but I figured in this case we have a channel that's listening to events, so I'll just send an event out.
Pass Authorization Errors Down to Client
The other error handlers are called by Starscream's delegate, but the auth errors are called by NSUrlSession, which is on a background thread. So, I've moved the logic into a dispatch_async the main thread. I decided to put it in the handleError method rather than outside it because there are multiple places that need it and currently all of them are on the background threads. If later that's not true, then we should put the dispatch around the method call in all 4 or so places it comes up.
Had to make the test async to have it work, but then it seemed to work. The expect in the callback feels a little weird, but I think it's alright.
Dispatch Errors on Main Thread
5e87dec
to
516493d
Compare
the PusherSwift-iOS framework as opposed to the pod install framework.
onMemberAdded
andonMemberRemoved
properties to presence channelfindMember
andme
functions to presence channel