README.md in motion-firebase-2.0.1 vs README.md in motion-firebase-2.0.7
- old
+ new
@@ -85,10 +85,12 @@
# firebase.queryEndingAtPriority(andChildName:)
# firebase.queryLimitedToNumberOfChildren()
##### Managing presence
+ firebase.online!
+ firebase.offline!
firebase.on_disconnect(value)
firebase.on_disconnect(value) { |error| 'completion block' }
firebase.on_disconnect(value, priority:priority)
firebase.on_disconnect(value, priority:priority) { |error| 'completion block' }
firebase.on_disconnect(nil)
@@ -104,10 +106,14 @@
firebase.auth(credential) { |error, data| 'completion block' }
firebase.auth(credential,
completion: proc { |error, data| 'completion block' },
disconnect: proc { |error| 'completion block', },
)
+ # calls `unauth`, or if you pass a block calls `unauthWithCompletionBlock`
firebase.unauth
+ firebase.unauth do |error|
+ # ...
+ end
# when using FirebaseSimpleLogin to authenticate, this child node should be
# monitored for changes
firebase.auth_state
# usually you'll want to monitor its value, so this is a helper for that:
handle = firebase.on_auth do |snapshot|