Anyone else has this problem?
I am able to open my app from browser/cordova just fine, with subscriptions running well. However, when I use method calls from cordova, the latency gets really bad. The same methods called from browser is running just fine.
In case this helps, I’m using Meteor 1.4.4.2 + Nginx + Phusion Passenger 5.1.3 on Debian 8. The Nginx config is below:
server {
listen 80;
listen 443 ssl spdy;
server_name meteorapp;
ssl_certificate /etc/letsencrypt/live/meteorapp/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/meteorapp/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/meteorapp/chain.pem;
# Tell Nginx and Passenger where your app's 'public' directory is
root /var/www/meteorapp/bundle/public;
include /etc/nginx/snippets/ssl-params.conf;
# Necessary for Let's Encrypt Domain Name ownership validation
location ~ /.well-known {
allow all;
}
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Turn on Passenger
passenger_enabled on;
passenger_sticky_sessions on;
# Tell Passenger that your app is a Meteor app
passenger_app_type node;
passenger_startup_file main.js;
# Tell your app where MongoDB is
passenger_env_var MONGO_URL mongodb://localhost:27017/meteorapp;
passenger_env_var MONGO_OPLOG_URL mongodb://localhost:27017/local;
# Tell your app what its root URL is
passenger_env_var ROOT_URL http://meteorapp;
}