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
1
vote
0 answers

How to log in through Meteor DDP?

Little BackGround: I have two app (app1 & app2). From app1 one user can register themselves. After logging in to app1 user can give their data in an input field which will be saved in a notes collection. From app2 user can see their notes which I…
Kazi
  • 1,461
  • 3
  • 19
  • 47
1
vote
0 answers

javax.net.ssl.SSLProtocolException Below Nougat

i am trying to connect my android client with Meteor Server. code is successfully working on Devices above marshmallow. but not working on marshmallow and below devices. i am using this library to connect my meteor Server i am getting below error…
rizwan
  • 11
  • 2
1
vote
0 answers

Avoid remove data on client when unsubscribe

I use observeChanges like this let handle = Message.find(query, options).observeChanges({ added: function (id) { self.added("message", id, getMessageFields(id)); }, changed: function (id) { self.changed("message", id,…
M Hasan
  • 68
  • 7
1
vote
1 answer

Issue with sending LiveChat messages via DDP in RocketChat

I am trying to use the DDP Realtime API to initiate a LiveChat conversation but I am facing issues. https://rocket.chat/docs/developer-guides/realtime-api/livechat-api I am doing all the steps as per the documentation. In the first API outcome, you…
geeky_monster
  • 8,672
  • 18
  • 55
  • 86
1
vote
0 answers

React-Router noMatch causes asteroid.userId to return falsey

Notice the line Users.methods.isAuthed() and you can see that its calling !!asteroid.userId . My login form works fine, but I'm trying to make a react-router authorization wall which means the router will load the component when the authorization…
Falieson
  • 2,198
  • 3
  • 24
  • 35
1
vote
2 answers

DDP Rate limiter on login attempts in meteor

I'm trying to put a DDP rate limiter on the number of login attempts coming in from the client to the server. I've gone through the official documentation but I'm unable to verify if any of it actually works. I've added the package:…
blueren
  • 2,730
  • 4
  • 30
  • 47
1
vote
1 answer

Connect an independent Ionic2+Angular2 based app with a Meteor server via DDP client library

I have an independent Ionic2+Angular2 based mobile application. Also I have an existing Meteor server running on the other hand. I want to use the services of that Meteor Server in my Ionic2+Angular2 application. Is there any way to create a…
StormTrooper
  • 1,731
  • 4
  • 23
  • 37
1
vote
1 answer

Meteor DDP call between containers on same host

This Meteor App server code tries to use the method of another Meteor worker. both the app and the worker are in a separate docker containers on the same server EC2. The worker is running on port 9000. When the App fires a method appCallingWorker, I…
Fred J.
  • 5,759
  • 10
  • 57
  • 106
1
vote
1 answer

DDP message over websocket failure

I'm currently working on a C application sending message to a Meteor server over websocket. I'm using jansson for JSON conversion and nopoll as websocket library. Everything is working fine in both way (sending / receiving) except when I try to…
c.censier
  • 781
  • 7
  • 23
1
vote
1 answer

Can't connect to remote Meteor server via DDP.connect(url)

I'm trying to connect my Meteor's frontend app to a remote server (that exposes its API via a websocket connection) by using Meteor's DDP.connect(url) function: import { Meteor } from "meteor/meteor"; import { DDP } from…
ZenDD
  • 906
  • 1
  • 7
  • 16
1
vote
1 answer

Using DDP in a Chrome extension

In the Chrome extension I am building, I would like to connect to a Meteor server from the extensions popup window, for user registration, login and I've found a brief explanation from Meteor Spotting from 2014 that indicates that it is possible to…
James Newton
  • 6,623
  • 8
  • 49
  • 113
1
vote
0 answers

How to achieve automatic login to meteor server using ddp?

I am using asteroid npm package in my chrome extension to connect to meteor app(which uses account-password meteor package).I can log in to back end with login mixin but how do I check if there is a logged in session already present?
1
vote
1 answer

ddp.js how to get connection id

Hi guys I am writing a meteor app and using the ddp.js v0.6.0 to make my frontend with static html. Now I need a way to get my session connection id in the front with ddp.js, is there anyway to do it? In meteor I can just do…
Hayk Safaryan
  • 1,996
  • 3
  • 29
  • 51
1
vote
1 answer

Publishing to all connected clients - Meteor Server Crashing

I'm creating a multiplayer wheel of fortune game using Meteor. I'm very new to Meteor and I feel that the way I've constructed this is terrible... My computer starts sounding like it getting ready for liftoff and then my server crashes eventually…
Corey Holmes
  • 368
  • 3
  • 13
1
vote
1 answer

Whenever I update current user, all collections are flushed (actually not)

I'm developing a website with angular-meteor and I've faced a strange problem. On every page I have a chat block, the messages are stored in collection chatMessages and displayed correctly. The problem is that every time I edit current user (manual…
starky
  • 640
  • 5
  • 13