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
.
Questions:
How can I make
B
to use secure WebSocket (wss) for connection?How can I make connect it to
A
hosted on {my host name}.meteor.com?How can force
A
to reply to requests using fixed URL, for example,ws://{my host name}.meteor.com:3000/websocket
? How can I force it to use ws instead of wss?Should I specify something in config.js or settings.js?
Is there any way to specify environment variables for meteor.com hosting, for example, DDP_DEFAULT_CONNECTION_URL, NODE_OPTIONS?