This repository was archived by the owner on Apr 17, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Pod ::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'
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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+
164177License
165178--------------
166179** [ MIT] **
You can’t perform that action at this time.
0 commit comments