Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

handle connection error

Discussion in 'Scripting' started by Rendolf, Sep 16, 2014.

  1. Rendolf

    Rendolf

    Joined:
    Aug 26, 2014
    Posts:
    19
    hello,
    i have two applications (client and server). I want to check form client if server was initialized. The problem is, when Network.connect("localhost", port) and server was not initialized application stops beacause of error. I saw there is static method OnFailedToConnect but it is useless when application is paused. I tried to use try-catch but it didn't help. Any ideas?
     
  2. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
  3. Rendolf

    Rendolf

    Joined:
    Aug 26, 2014
    Posts:
    19
    Ok, so there is no solution... Thank you :)