MeteorPartiesDDPClient
MeteorPartiesDDPClient copied to clipboard
Example not working: Unable to connect to server
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.
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...
Where do you specify the meteor server to connect to?
I've been searching for the same. Where do we specify the meteor server?
override sMeteorServer or initInstance in the MyDDPState.java.
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); } .......