siegesmund / SwiftDDP

A Meteor client, written in Swift
MIT License
145 stars 60 forks source link

Resubscribe all subscriptions on reconnection #19

Closed mjgaylord closed 8 years ago

mjgaylord commented 8 years ago

This ensures that the service resubscribes to all existing subscriptions of the service ever needs to reconnect

siegesmund commented 8 years ago

I think this should work. The only thing is, we should useself.sub(id, name, params), rather than self.sub(name, params). Pass the original subscription id (the first element in the tuple).

mjgaylord commented 8 years ago

Right. I've updated it and tested, and its working well.