K
K
Kirill Ageychenko2019-10-04 20:13:26
Java
Kirill Ageychenko, 2019-10-04 20:13:26

How to connect to meteor server in android app via DDP?

I am using the ANDROID-DDP library to connect to the meteor server, but I get this error:

java.lang.Exception:
com.neovisionaries.ws.client.WebSocketException: Failed to connect to 'www.cloud.astrapos.ru:443': 
Host is unresolved: www.cloud.astrapos.ru

Here is an example connection:
// enable logging of internal 
    events for the library
    Meteor.setLoggingEnabled(true);
    // create a new instance
    mMeteor = new Meteor(this,"ws://www.cloud.astrapos.ru:443", new InMemoryDatabase());
    // register the callback that will handle events and receive messages
    mMeteor.addCallback(this);
    // establish the connection
    mMeteor.connect();

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question