gwendall / meteor-remote-ddp Goto Github PK
View Code? Open in Web Editor NEWGet your Meteor client point to any DDP server
Get your Meteor client point to any DDP server
Hi,
I created a simple meteor application that uses the remote-ddp package to connect to a meteor server (System A) with a full app.
I want to use the users of the remote users of the system A in this new app.
I added following code in a file the client/lib folder of the new app the following code:
(points to server A)
RemoteDDP("http://192.168.7.112:3000");
I'm now able to log into the new app with an existing user. Hurray!
But then I reload the page, I get the following message in the browsers console:
Error logging in with token: Error: You've been logged out by the server. Please log in again. [403]
When I took a closer look at the ddp messages, I saw that the login message was sent to the new server instead of server A after the reload.
Do you have a clue what might cause this behaviour and how to fix it?
Cheers,
Gerwin
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.
I am developing android app with meteor, for my need I use remote-ddp
package. I use to develop in mobile device by meteor run android-device --verbose
. If I do any changes in code, android app doesn't refresh but browser reload perfectly. After removed remote-ddp
package it works fine in both browser and app. Can you please checkout this issue? If you need my help from my side please ask me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.