Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  4. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

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:
    26
    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:
    26
    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:
    26