vsivsi / meteor-file-collection

Extends Meteor Collections to handle file data using MongoDB gridFS.
http://atmospherejs.com/vsivsi/file-collection
Other
159 stars 37 forks source link

How to link FileCollection to DDP connection? #85

Open dnish opened 8 years ago

dnish commented 8 years ago

Hey, just trying out the current Cordova version in our app. Now I'm having the problem, that our app is linked to our main webservice via DDP, for example:

Messages = new Meteor.Collection("messages",{connection:ddpConnection});

How can I set the connection with File-Collection?

vsivsi commented 8 years ago

FileCollection currently doesn't support non-default DDP connections to the server. I'd be happy to accept a PR adding that functionality, or alternatively I can add it as an enhancement request that I can probably get around to within a few weeks. It would probably be pretty easy to add on the client side, but trickier to add on the server (so a server can be "client" to another server's FileCollection). The main issue will be testing all of the different scenarios, which is why I never added this, because I've been trying to keep this package simple and easy to maintain....