Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Commit 9ecb296

Browse files
author
Michael Arthur
committed
readying for 0.1.6 release
1 parent d88a339 commit 9ecb296

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

ObjectiveDDP.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |s|
22
s.name = 'ObjectiveDDP'
33
s.platform = 'ios', '7.0'
4-
s.version = '0.1.5'
4+
s.version = '0.1.6'
55
s.license = 'MIT'
66
s.summary = 'Facilitates communication between iOS clients and meteor.js servers'
77
s.homepage = 'https://github.com/boundsj/ObjectiveDDP.git'
88
s.author = 'Jesse Bounds'
9-
s.source = { :git => 'https://github.com/boundsj/ObjectiveDDP.git', :tag => 'v0.1.5' }
9+
s.source = { :git => 'https://github.com/boundsj/ObjectiveDDP.git', :tag => 'v0.1.6' }
1010
s.source_files = 'ObjectiveDDP/*.{h,m,c}'
1111
s.requires_arc = true
1212
s.dependency 'SocketRocket', '0.3.1-beta2'

ObjectiveDDP/MeteorClient.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ - (void)_handleConnectionError {
339339
_disconnecting = NO;
340340
return;
341341
}
342+
// TODO improve callback to use exponential backoff
342343
[self performSelector:@selector(_reconnect) withObject:self afterDelay:5.0];
343344
}
344345

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,19 @@ NSArray *parameters = @[@{@"_id": anId,
161161
responseCallback:nil];
162162
```
163163
164+
##### Listen for notifications:
165+
166+
MeteorClientConnectionReadyNotification - When the server responds as accepting the DDP protocal version to communicate on, you won't be able to call any methods to meteor until this happens
167+
168+
```objective-c
169+
170+
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reportConnection) name:MeteorClientDidConnectNotification object:nil];
171+
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reportConnectionReady) name:MeteorClientConnectionReadyNotification object:nil];
172+
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reportDisconnection) name:MeteorClientDidDisconnectNotification object:nil];
173+
174+
175+
```
176+
164177
License
165178
--------------
166179
**[MIT]**

0 commit comments

Comments
 (0)