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

how to view meteor DDP traffic?

meteor uses DDP over socks / websockets. How do i get any type of view of what's going on in the browsers debug console? In the network panel of chrome at least there is just a single "websocket" connection without much info on the traffic running…
dcsan
  • 11,333
  • 15
  • 77
  • 118
10
votes
5 answers

Pytorch Lightning duplicates main script in ddp mode

When I launch my main script on the cluster with ddp mode (2 GPU's), Pytorch Lightning duplicates whatever is executed in the main script, e.g. prints or other logic. I need some extended training logic, which I would like to handle myself. E.g. do…
dlsf
  • 332
  • 2
  • 13
10
votes
2 answers

Meteor: difference between names for collections, variables, publications, and subscriptions?

In the Discover Meteor examples, what's the diff between "posts" and "Posts"? Why is it that when we do an insert from the server we use "posts" but when querying from the browser we use "Posts"? Wouldn't the system be confused by the case…
thetrystero
  • 5,622
  • 5
  • 23
  • 34
9
votes
1 answer

How to access app hosted on meteor.com by DDP (WebSocket) protocol?

I have a Meteor app A and another application B, not using Meteor, but making some data exchange with the app A. It works fine when I launch A on a machine in my local network, but when I deploy it on meteor.com hosting it doesn't. Server doesn't…
boqapt
  • 1,726
  • 2
  • 22
  • 31
8
votes
1 answer

How can I protect my Meteor server from an infinite loop on the client?

I've run into a situation where an infinite loop on the client is crashing the Meteor server. The infinite loop is a bug that I will fix, and not the subject of this question. My concern is that a malicious user could create their own infinite…
colllin
  • 9,442
  • 9
  • 49
  • 65
6
votes
1 answer

How to set up secure websocket on Meteor app (localhost)

I used Asteroid as my ddp to connect with my Meteor app as backend. The front end run https and it works perfectly on Chrome. So it actually a consist of two separate apps run independently. But it didn't go well in Safari. Safari block the…
Muhaimin
  • 1,643
  • 2
  • 24
  • 48
6
votes
2 answers

Meteor DDP: How to get notified when a NEW document is added to a Collection

I am writing a piece of software that connects to a Meteor server via DDP to read data. The problem I am facing is figuring out how to differentiate between a NEW document getting added to a collection and getting notified about already-existing…
Allie the Icon
  • 2,142
  • 2
  • 18
  • 26
5
votes
1 answer

cannot connect to meteor with android-ddp after deploying the meteor app

I was using ws://example.com:3000/websocket for connecting Android-ddp to meteor app. Meteor was runing on example.com:3000. It was working fine. Now I deployed the app using mup on the same URL, example.com and port: 3000. I am able to access the…
Deepak jha
  • 298
  • 5
  • 19
5
votes
3 answers

process.nextTick is not a function (React native, ddp, meteor)

On react native, I am trying to use 'ddp-client' node library to connect to a meteor server. Just after the connection is successful, I am getting the following ERROR on client side: 2016-01-17 16:14:15.992 [trace][tid:com.facebook.React.JavaScript]…
Magesh khanna
  • 183
  • 1
  • 1
  • 11
5
votes
2 answers

Meteor - Why should I use this.userId over Meteor.userId() whenever possible?

Judging from this comment by David Glasser in the GitHub issues: this.userId is the primary API and Meteor.userId() is syntactic sugar for users new to JavaScript who might not understand the details of successfully using this yet It seems like we…
dayuloli
  • 16,205
  • 16
  • 71
  • 126
5
votes
1 answer

How to prevent a Meteor/Cordova App from connecting to 10.0.2.2? (And why does the app connect there?)

I have a Meteor app which runs on a local server for developement (http://10.0.2.10:3000). The ROOT_URL is set correctly so __meteor_runtime_config__.ROOT_URL equals this URL. Of course the app is working perfectly fine in the browser on a client…
Jey DWork
  • 1,746
  • 2
  • 16
  • 29
5
votes
1 answer

How efficient is Meteor's DDP at syncing very large collections?

Meteor's DDP protocol works very well for syncing a small collection of data from a server to a browser-based client, which inherently limits the amount of data that is processed. However, consider a situation where Meteor is being used to sync a…
Andrew Mao
  • 35,740
  • 23
  • 143
  • 224
4
votes
1 answer

Meteor.js: DDPRateLimiter limit is global, not per connection

Hi I am rate limiting some methods in meteor.js with DDPRateLimiter and what I found out is that it limits method call for everyone not just that connection! For example for this rule: var updateUsernameRule = { type: 'method', name:…
nesvarbu
  • 986
  • 2
  • 9
  • 24
4
votes
0 answers

Meteor DDP.connect not falling back to long-polling

My team and I are implementing a services based architecture in Meteor. We have a frontend service. This simply uses the default Meteor connection. We also have a number of backend services (e.g. Chat, Search) and we connect to them via the frontend…
user2205763
  • 1,499
  • 2
  • 14
  • 30
4
votes
1 answer

Meteor: Login over DDP and retrieve current user object in seperate Meteor app

First a little background: I am working on an seperate mobile application that is connected with the main app. The connection is succesfully initiated and I can retrieve all collections, through subscriptions: Remote =…
Fullhdpixel
  • 803
  • 1
  • 13
  • 28
1
2 3
13 14