Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example not working: Unable to connect to server #3

Open
srinivasmangipudi opened this issue Feb 20, 2015 · 5 comments
Open

Example not working: Unable to connect to server #3

srinivasmangipudi opened this issue Feb 20, 2015 · 5 comments

Comments

@srinivasmangipudi
Copy link

Trying to run this example from android studio, but the example is not connecting to the meteor server at demoparties.meteor.com. The error is: "web socket initialising error (exception in callback?)"

I think the DDPClient is not able to initialise the native android web socket.

@kenyee
Copy link
Owner

kenyee commented Feb 21, 2015

You should be connecting to your own copy of the server.
The demo Android client in the app store has no problems connecting to my server...

@jbrozena22
Copy link

Where do you specify the meteor server to connect to?

@prathviraj080
Copy link

I've been searching for the same. Where do we specify the meteor server?

@kenyee
Copy link
Owner

kenyee commented Jul 2, 2015

override sMeteorServer or initInstance in the MyDDPState.java.

@daywong1119
Copy link

i was looking on the server config, sMeteorServer is a final string which means that's not overridable. Also, it seems like an hardcoded value for createDDPClient.

.....
public void createDDPCLient() {
try {
this.mDDP = new DDPClient("demoparties.meteor.com", sMeteorPort);
} catch (URISyntaxException var2) {
Log.e("DDPStateSingleton", "Invalid Websocket URL connecting to demoparties.meteor.com:" + sMeteorPort);
}
.......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants