kenyee/java-ddp-client

Use SSL error?

tlkiong opened this issue · 2 comments

This is a weird issue which I am not able to pinpoint yet.

It goes like this:

  1. On first try to initwebsocket with useSSL = true
  2. Can connect and all is fine
  3. close websocket
  4. 2nd time initwebsocket with useSSL = true
  5. Receive error:
    (a) draft org.java_websocket.drafts.Draft_10@7847e63f refuses handshake

Do you have any idea why or what happened?

I have found the issue.

On the DDPClient.connect(..), if the conection is closed, it will just

createWsClient(mMeteorServerAddress);
And this is without the
.setWebSocketFactory() to it

1.0.0.2 will have a fix for this. Thanks for finding it.