ddp

Connecting to Meteor DDP from Java with Docker container

可紊 提交于 2019-12-25 08:28:02
问题 I am here just to share some experience with java DDP Client Meteor and Docker Hello I am accessing to a meteor docker container from a J2EE docker container and it fails because there are some trouble at the connection with the server name (corresponding to "meteor" in my compose file) and the port "82". In this case it doesn't take into account the port and it replaces it with a default value 80... so the connection fails... 回答1: WHY ? because URI don't handle domain name without dots e.g.

Two-way communication between Meteor and Node

China☆狼群 提交于 2019-12-23 05:37:33
问题 I am building a Node app that talks to an Xbee over serial and reads/controls several sensors/relays that are also Xbee equipped. I would like to use Meteor for the user interface and data storage with the Node app simply sending sensor updates and controlling the relays when triggered by the Meteor app. What would be the proper way to communicate between the Node and Meteor app? I know I can use a Node DDP client to insert sensor readings to the Meteor app. The part I am having problems with

Etablish DDP connection between Meteor Server and C app

半世苍凉 提交于 2019-12-22 08:48:07
问题 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 (http://www.aspl.es/nopoll/html/index.html) and jansson for the JSON serialization (http://www.digip.org/jansson/). I read the DDP Specification (https://github.com/meteor/meteor/blob/devel/packages/ddp/DDP.md) and this brief (but good) explanation (https://meteorhacks.com

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

删除回忆录丶 提交于 2019-12-18 15:56:00
问题 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 reply. B uses code new WebSocket("ws://" + host + ":3000/websocket") for connection (DDP protocol). But when I change ws to wss it doesn't work any more even with the machine in LAN - it doesn't reply. I saw that main page of app A when I open it

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

泪湿孤枕 提交于 2019-12-18 15:55:08
问题 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 reply. B uses code new WebSocket("ws://" + host + ":3000/websocket") for connection (DDP protocol). But when I change ws to wss it doesn't work any more even with the machine in LAN - it doesn't reply. I saw that main page of app A when I open it

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

别说谁变了你拦得住时间么 提交于 2019-12-17 06:13:57
问题 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 differences? I see the variable assignment for client Posts to the server posts in posts.js. Is it a conventional notation to capitalize client and use small caps for server? Posts = new Meteor.Collection('posts') Why does server/fixtures.js use "Posts"? I

React-native-meteor package subscription handle not ready

て烟熏妆下的殇ゞ 提交于 2019-12-14 03:19:10
问题 I'm trying to combine react-native and meteor using the react-native-meteor package. Meteor successfully publishes a 'dos' collection, which I have been able to subscribe to on the web client. However, after following the documentation of the react-native-meteor package (using createContainer) I am unable to subscribe; the handle is 'never ready'. When using the autopublish package from Meteor the data does load. Versions Meteor 1.3.4.1 react-native: 0.28.0 react-native-meteor: 1.0.0-rc14

Meteor: Limiting DDP Connections with ddp-rate-limiter package

荒凉一梦 提交于 2019-12-12 03:08:36
问题 I am trying to prevent a user to be able to call a Meteor method too often with the Meteor package ddp-rate-limiter (For example to prevent spamming or a DOS attack), but I can not get it to work. Does anybody have an idea? server/ddpRateLimiter.js: Meteor.methods({ dosAttack: function() {console.log("dos");} }); var preventDosAttack= { userId: function() {return true;}, type: 'method', method: 'dosAttack' } DDPRateLimiter.addRule(preventDosAttack, 5, 1000); With this code I can still run the

Meteor DDP SSL/Apache Proxy Connection

人盡茶涼 提交于 2019-12-11 22:26:05
问题 I have Debian host that runs my Meteor application on NodeJS that listens: 127.0.0.1:3999 I also have a domain register https://example.com that welcomed with Apache and proxied to my Meteor application. I have problem with DDP Connection. my connection link is ws://example.com/websocket I set the ProxyPass settings as following: <VirtualHost *:443> ServerName example.com ServerAlias www.example.com SSLEngine on SSLProxyEngine On ProxyRequests Off SSLCertificateFile /etc/apache2/ssl/www

Send data from Server to Client without Collections (with Websocket)

六月ゝ 毕业季﹏ 提交于 2019-12-11 13:58:12
问题 I'm currently working on a WebApp in Meteor. There is a Server, a Web Client (a browser) and another client which is a C application. I've made a connection between my C app and the Server using Websocket. Everything work fine I got connected and I can get data from the Server and call RPC (Remote Procedure Call) from the client. I actually need to call some RPC from the Server to the C app. I know I can use Collections in order to dialog with my C app but it's not very suitable... I wonder