Search Unity

Can't establish WSS connection in iOS and Android builds

Discussion in 'Connected Games' started by g_a_p, Sep 14, 2018.

  1. g_a_p

    g_a_p

    Joined:
    Mar 16, 2015
    Posts:
    81
    We created a test project which can alternatively establish a WebSocket (WS) or a WebSocketSecure (WSS) connection with a test server (echo.websocket.org), using the System.Net.WebSockets.ClientWebSocket class.

    We are using Unity 2018.2.8 and everything works fine in the Editor and standalone macOS build, but when we build the project for Android or iOS, the WSS connection doesn't work anymore.

    Funny is, we tested the exact same project in Unity 2018.1.4 and the iOS build works fine.

    What should we do? Should we submit a bug? (actually we already submitted a similar bug, related to Android only and using WebSocketSharp library, but no one took it in charge as of today).

    We are now stuck, so any suggestion is welcome!
     
    Last edited: Sep 14, 2018
  2. g_a_p

    g_a_p

    Joined:
    Mar 16, 2015
    Posts:
    81
    Side note: same result (WSS not working) in Unity 2018.3 beta and iOS build.
     
  3. g_a_p

    g_a_p

    Joined:
    Mar 16, 2015
    Posts:
    81