mondora / asteroid

An alternative client for a Meteor backend
MIT License
734 stars 101 forks source link

how to connect to meteor.com deployment #68

Closed stlouisweb closed 9 years ago

stlouisweb commented 9 years ago

How can one connect asteroid to a deployed instance of meteor (not localhost).

I've tried var ceres = new Asteroid("dmyapp.meteor.com:3000");

the websocket never connects.

what am I doing wrong?

stlouisweb commented 9 years ago

Got it using a secure connection:

var ceres = new Asteroid("myapp.meteor.com:443", true);
pscanf commented 9 years ago

Glad it solved itself :smiley:

You may also need to use mondora/mondora-asteroid to set cross-origin headers and make asteroid work with oauth login services.

Cheers