Android Question SSL Websocket client

Discussion in 'Android Questions' started by LucaMs, Jan 18, 2018.

  1. Erel

    Erel Administrator Staff Member Licensed User

    It looks like a bug in the network provider. A new version that disables this check is attached.

    I've added a message about this requirement in WebSocket library thread.
     

    Attached Files:

    • wss.zip
      File size:
      8.6 KB
      Views:
      205
    LucaMs likes this.
  2. LucaMs

    LucaMs Expert Licensed User

  3. LucaMs

    LucaMs Expert Licensed User

    Thank you, Erel
     
  4. LucaMs

    LucaMs Expert Licensed User

    :(

    No, it is not enough; after a few seconds (10?) the connection is closed, with error message (reason): null
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    This is expected, assuming that you are connecting to the "smiley" server. It expects a message that you are not sending.
     
    LucaMs and Star-Dust like this.
  6. LucaMs

    LucaMs Expert Licensed User

    :)
     
  7. LucaMs

    LucaMs Expert Licensed User

    Erel your project works perfectly but there is a problem, I think: if you use a Wait For (or a Sleep) in the Starter, the "flow control" will be passed to the Main Activity. Also, I don't open the connection in the Starter.

    So I tried to move your code in a class but I clashed against a wall: is it possible to use "Wait For" to wait for an event of a custom object?
     

    Attached Files:

  8. LucaMs

    LucaMs Expert Licensed User

    Solved:

    Code:
    mSslFixIssue.TryToFix
    Wait For SslIssueFixed(Fixed As Boolean)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice