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
2
votes
1 answer

How to get collection from Meteor server with Android DDP?

Let me to start explain my problem. There is repository with some explanations, but there are no methods how to get collection or json file from Meteor server(only insert). Also author did not explain properly methods onDataChanged, onDataAdded…
Rokeder
  • 23
  • 5
2
votes
0 answers

Cannot make Meteor/Cordova use a remote server for DDP

I've been trying to solve the following problem for a few days now, and it's been driving me absolutely crazy. I have a (1.2) meteor application, deployed at http://some.application.com:3000. It works great, and does what it is supposed to do. The…
darryn.ten
  • 6,784
  • 3
  • 47
  • 65
2
votes
1 answer

DDP call interception

I'm thinking of scenarios where I might want to perform cross-cutting/AOP or other functions at the server for my Meteor Js project when a Meteor client (or DDP client) invokes a server-side method over a DDP connection. This link here gives a…
Fratt
  • 239
  • 3
  • 13
2
votes
1 answer

Meteor allowing me to subscribe from anywhere, security flaw

So I have made a meteor app and I have the autopublish and insecure packages removed, now in order to receive data from my collections I have to subscribe to them in the client. I also have a python program that communicates with my meteor server…
RobotiX
  • 137
  • 8
2
votes
0 answers

Meteor : Publish data from external source (socket)

I am using the getstream.io API with their library. They have the following hook in their JS library : newsFeed.subscribe(function callback(data) { //do something with the data }); I created a package to wrap the NPM library. I want now…
Yanis26
  • 247
  • 2
  • 13
2
votes
3 answers

Is there a DDP request monitoring tool for Chrome or Firefox?

I am working on Meteor projects, which provide real-time updates by DDP (Distributed Data Protocol). I wish to monitor those requests within the browser. Is there any tool to allow monitoring DDP requests?
Ramesh Murugesan
  • 4,727
  • 7
  • 42
  • 67
2
votes
1 answer

Meteor: Authenticating Chrome Extension via DDP

I've built a Chrome Extension that takes a selection of text and when I right click and choose the context menu item, it sends that text to my Meteor app. This works fine, however, I can't figure out the process of using Oauth to authenticate…
George Pickett
  • 71
  • 1
  • 1
  • 11
2
votes
3 answers

How can I track / analyze Meteor DDP calls

While programming a Meteor complex application it would be useful to track / analyze / sniff the DDP traffic in order optimize it and make the app fast and efficient. For example it would be very interesting to see the publications and methods calls…
Gerard Carbó
  • 1,775
  • 18
  • 16
2
votes
1 answer

Meteor and ordered collections (DDP client and observers)

I made a DDP client for meteor and implemented an ordered collection. Basically I implemented both the "added" and "addedBefore" methods from the DDP spec but I've a doubt in the proper way to interpret them. Initially, I considered the server will…
Flavien Volken
  • 19,196
  • 12
  • 100
  • 133
2
votes
1 answer

Meteor DDP - "ready" and "update" messages clarification

I'm currently implementing a DDP client based on the specs available on this page: https://github.com/meteor/meteor/blob/master/packages/livedata/DDP.md I just have a doubt concerning the 2 method types called "ready" and "update". Let's start with…
Flavien Volken
  • 19,196
  • 12
  • 100
  • 133
1
vote
1 answer

How do I wait for successful connection using DDP in meteor (server -> server)

Continuing the discussion from DDP: how do I wait for a connection?: Based on the thread above, we an leverage Tracker.autorun to wait and confirm for a successful connection between a client and meteor server. I would like to do the same on a…
blueren
  • 2,730
  • 4
  • 30
  • 47
1
vote
0 answers

Finding the number of of nodes and gpus of DistributedDataParallel

I would like to know what number should I select for nodes and gpus. I use Tesla V100-SXM2 (8 boards). I tried: nodes = 1, gpus=1 (only the first gpu works) nodes=1, gpus =8 (It took very long time and cannot execute) Did I got wrong parameter…
Jenny I
  • 91
  • 1
  • 2
  • 7
1
vote
0 answers

Meteor Sub/pub with reactive vars break the DDP push?

I try to use reactive vars to filter the published data, on a data list page, users can pickup 2 dates to show the data created during the dates; all works great until i got few computers to access this page at same time; the data changes would not…
Robin Jiao
  • 113
  • 10
1
vote
1 answer

Meteor DDP Call returns undefined when too long

I got 2 servers, one for the main app and another one for huge tasks. User -> Server 1 -> Server 2 Server 1: Main app & Easy tasks Server 2: Huge Tasks When I call a server 2's function which takes a long time to answer, server 1 receive undefined…
Holgrabus
  • 141
  • 2
  • 9
1
vote
1 answer

Maintain login state across multiple apps Meteor JS

I am converting a project from monolithic to microservice based architecture. The projects do not share database. Project-1 is auth, it handles all auth like login, signup, log out, while the project-2 is for product management, how should project-2…
ken4ward
  • 2,246
  • 5
  • 49
  • 89