Questions tagged [ddp]

Meteor communication protocol

DDP is a protocol between a client and a server that supports two operations:

  • Remote procedure calls by the client to the server.
  • The client subscribing to a set of documents, and the server keeping the client informed about the contents of those documents as they change over time.
200 questions
4
votes
1 answer

Etablish DDP connection between Meteor Server and C app

I'm developing a Meteor application with two client, one is in JavaScript and the other one is in C. I'm actually trying to connect my C app to the server using websocket. I'm using the library nopoll for the websocket…
c.censier
  • 781
  • 7
  • 23
4
votes
2 answers

Create DDP Server using Node.js

Due to restrictions on node.js versions, recent versions of Meteor cannot be used on the system. A DDP server has to be created using regular node.js instead, which a Meteor setup will connect to. DDP client can be created in node.js using…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
4
votes
1 answer

How to setup a rails app as a DDP server to serve collections to a meteor app

I have a rails app with some collections that I want to setup up as the source for the collections on a meteor app. which from my understanding I can connect to from meteor by doing so. var remote = DDP.connect('http://127.0.0.1:5000'); Customers =…
Moshe
  • 473
  • 1
  • 8
  • 22
4
votes
2 answers

How to use Rails as DDP server with Meteor.js client

We have a Rails app that acts HTTP API only. On the client side, Ember.js is currently used. We are not overly impressed by Ember and really like the approach Meteor.js takes. So we'd like to exchange the client side with Meteor.js and communicate…
Patrik
  • 95
  • 9
4
votes
1 answer

Embed a meteor app inside a non-meteor webpage

I am trying to embed a meteor app (a) hosted on server (A) inside a webpage (b) running on webserver (B) (In my case the meteor app is running on meteor.com and the webpage (b) is built on Drupal and hosted on another server running nginx and php).…
3
votes
1 answer

How to publish data without MongoDB through subscriptions in Meteor?

Essentially, this is what I had in mind : Client const Messages = new Mongo.Collection("messages"); Meteor.call("message", { room: "foo", message: "Hello world"); Meteor.subsribe("messages", "foo"); // elsewhere const messages = Messages.find({…
Yanick Rochon
  • 51,409
  • 25
  • 133
  • 214
3
votes
0 answers

How to differentiate publications w/o param & stream with DDP?

Rocket Chat Understanding As per my understanding on Rocket Chat platform(correct me if I am going in wrong directions), we(Android native - DDP) have 2 abstract class for subscription from AbstractDDPDocEventSubscriber with their own purpose to…
jignesh.world
  • 1,396
  • 1
  • 11
  • 26
3
votes
1 answer

Ionic 2 + Meteor How to set DDP_DEFAULT_CONNECTION_URL

I'm following this tutorial to create a ionic2 + meteor app. I've put the meteor backend on heroku and am trying to connect the ionic app to it. How/where can I set meteor_runtime_config.DDP_DEFAULT_CONNECTION_URL?
item
  • 85
  • 6
3
votes
1 answer

meteor ddp connection security and https

I have 3 meteor applications on three different servers. One of them has all the data the 2 others use. I am using ddp.connect(). So the three applications are working just fine, but my concern now is security. I have read about DDP after thinking…
mohRamadan
  • 571
  • 6
  • 15
3
votes
1 answer

Keep track of clients currently on a page

I would like to keep track of all clients currently on a page in my app. I am basically implementing something similar to live user list on Google Doc. A naive approach would be to send a heartbeat to the server at an interval, when a client is on…
mc9
  • 6,121
  • 13
  • 49
  • 87
3
votes
0 answers

How to reuse Meteor business logic in mobile app?

We are a young startup that choose Meteor against traditional MEAN stack to develop a realtime web application. One important thing for us is to develop a native mobile apps in near future (android, iOS). After some research we discovered that…
Adriano Foschi
  • 648
  • 1
  • 8
  • 23
3
votes
1 answer

Django DDP assistance

I'm sorry for this question I am not yet an expert to both django and meteorjs. I am trying to use this django-ddp technology but I am a little stuck on "Start the Django DDP service" on the Example Usage instruction at…
Dean Christian Armada
  • 6,724
  • 9
  • 67
  • 116
3
votes
1 answer

How to use django-ddp

I'm using django as backend. While reading stuff about meteor, i found django-ddp. I searched a lot, but I didn't get what django-ddp is for. I understood that you can use it to connect meteor to your django backend, but what is the use case? How…
FaBay
  • 43
  • 5
3
votes
1 answer

View all collections in the browser console

I would like to know how to list all collections of Meteor app in a browser. Basically, I need to use an undocumented DDP connection to some host, and need to know all collection names. I'ved tried things like Meteor.collections,…
mc9
  • 6,121
  • 13
  • 49
  • 87
3
votes
0 answers

MeteorJS and sockjs closing connection even with a fresh install

I've been having a persistent issue with Meteor recently, I keep getting this error in the Chrome after starting any application. WebSocket connection to 'ws://localhost:3000/sockjs/679/1mdsxflf/websocket' failed: Connection closed before receiving…
Don Hogan
  • 611
  • 1
  • 5
  • 7
1
2
3
13 14