ddp

Django DDP Deployment

我只是一个虾纸丫 提交于 2019-12-11 03:57:02
问题 Does anyone know here know how to deploy a django-ddp locally, as well as, a great example and tutorial. It's a very great technology and combination of two framework(backend and frontend). 来源: https://stackoverflow.com/questions/34307659/django-ddp-deployment

Django DDP assistance

故事扮演 提交于 2019-12-10 20:59:17
问题 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 https://github.com/commoncode/django-ddp I created a virtualenv, I created a project named tutorial, I followed the example usage instructions from the start until, Every time I tried to run this command (DJANGO_SETTINGS_MODULE=tutorial.settings dddp) in shell I always get a

How to use pollingThrottle and pollingInterval?

微笑、不失礼 提交于 2019-12-08 03:16:35
问题 So I have some things in my application that I don't need an immediate reactivity and found out about properties pollingThrottleMs and pollingIntervalMs in the documentation. So here is basically all the information about those properties I managed to find: pollingIntervalMs Number (Server only) How often to poll this query when observing on the server. In milliseconds. Defaults to 10 seconds. pollingThrottleMs Number (Server only) Minimum time to allow between re-polling. Increasing this

How to use pollingThrottle and pollingInterval?

北战南征 提交于 2019-12-06 12:03:26
So I have some things in my application that I don't need an immediate reactivity and found out about properties pollingThrottleMs and pollingIntervalMs in the documentation. So here is basically all the information about those properties I managed to find: pollingIntervalMs Number (Server only) How often to poll this query when observing on the server. In milliseconds. Defaults to 10 seconds. pollingThrottleMs Number (Server only) Minimum time to allow between re-polling. Increasing this will save CPU and mongo load at the expense of slower updates to users. Decreasing this is not recommended

Etablish DDP connection between Meteor Server and C app

假如想象 提交于 2019-12-05 13:19:16
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/introduction-to-ddp.html ). Here is the code is the websocket initialization int main(int ac, char**

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

佐手、 提交于 2019-12-04 09:41:34
问题 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 computer within 10.0.2.0/24. The app is also working fine on mobile chrome/firefox on my android cell phone which is also part of 10.0.2.0/24. However when I try to run it as app on this cell phone with meteor run android-device --mobile-server http:

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

本秂侑毒 提交于 2019-12-03 03:40:46
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 computer within 10.0.2.0/24. The app is also working fine on mobile chrome/firefox on my android cell phone which is also part of 10.0.2.0/24. However when I try to run it as app on this cell phone with meteor run android-device --mobile-server http://10.0.2.10:3000/ something strange happens: When the app starts for the first time (or the first

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

时光总嘲笑我的痴心妄想 提交于 2019-12-01 21:12:22
问题 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 should use this.userId whenever possible (such as inside a method function, where you can use both), and only use Meteor.userId() inside publish functions. If this assumption is correct, why ? (Referring to the relevant bits of the code would also

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

谁说我不能喝 提交于 2019-11-30 13:07:21
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 in browser uses URLs like wss://ddp--6774-{my host name}.meteor.com/sockjs/465/asf0b7da/websocket .

how to view meteor DDP traffic?

寵の児 提交于 2019-11-28 21:27:24
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 over it. I'm aware of arunoda's DDP analyzer and proxy but was looking for other ways to get basic information on traffic. I would have thought chrome's debugging tools would have a bit more support for protocols other than HTTP, and interested to know what else others find useful. You could try logging the messages as a simple starting point.