deepstreamIO / deepstream.io-client-java

The Java/Android Client for deepstream.io
Other
35 stars 37 forks source link

deepstream java v2.2.2 cannot login to deepstream server v4.2.5 #143

Closed Pitpy closed 4 years ago

Pitpy commented 4 years ago

There are no error and nothing after login!

yasserf commented 4 years ago

which url are you connecting to?

Pitpy commented 4 years ago

which url are you connecting to?

    DeepstreamClient ds = new DeepstreamClient("ws://10.0.10.40:6020");
    JsonObject credentials = new JsonObject();
    credentials.addProperty("user", "admin");
    credentials.addProperty("password", "chat@12");
    System.out.println(credentials);
    LoginResult result = ds.login(credentials);
    System.out.println(result);
Pitpy commented 4 years ago

@yasserf The IP is my organize LAN. It's worked for ds server v3, but not for v4.

yasserf commented 4 years ago

Yeah you need to connect to the V3 url

urlPath: /deepstream-v3

Pitpy commented 4 years ago

OK..., I changed to ds server v5 & use urlPath: /deepstream-v3 now working. Thank you @yasserf