I spent 3 days trying to connect my meteor mobile app to existing server. It is working well on server and I want to build app with:
meteor run android-device --mobile-server=https://domain.com:443
I tried to do various enviromental variables for ROOT_URL, for example:
ROOT_URL='https://domain.com' ROOT_URL='https://domain.com:443' ROOT_URL='https://ip:443' etc.
In any configuration I have problems with GETs. They are canceled or failed. When i set mobile-server to
http://domain.com:80 there is error:
WebSocket connection to ‘
ws://domain.com/sockjs/363/ruuwxpal/websocket‘ failed: Error during WebSocket handshake: Unexpected response code: 400
When i set mobile-server to
https://domain.com:443 it refuses all GET requests and Meteor.status i jumping between connecting and waiting.
Do you know what can be the problem?