gwendall / meteor-remote-ddp

Get your Meteor client point to any DDP server
10 stars 5 forks source link

RemoteDDP is not defined #4

Open krishnaff opened 8 years ago

krishnaff commented 8 years ago

Hello,

Simply adding RemoteDDP("http://localhost:5000") in lib/common.js folder throws the following error:

ReferenceError: RemoteDDP is not defined
    lib/collections.js:1:1
    /Users/insaneinc/projects/react/clientpro/.meteor/local/build/programs/server/app/lib/collections.js:18:4
    /Users/insaneinc/projects/react/clientpro/.meteor/local/build/programs/server/boot.js:242:10
    Array.forEach (native)
    Function._.each._.forEach (/Users/insaneinc/.meteor/packages/meteor-tool/.1.1.10.2npnf5++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
    /Users/insaneinc/projects/react/clientpro/.meteor/local/build/programs/server/boot.js:137:5

No error on the client though. This is a noob question, but i expected to be able to access the server collections one the connection is established. I have the same server side collections also defined in the lib/collections.js file.

Any info please? Thanks.