Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Error sending message: Connection ID is invalid. Likely caused by sending on stale connection 429496

Discussion in 'Netcode for GameObjects' started by gkunity123, Jul 24, 2023.

  1. gkunity123

    gkunity123

    Joined:
    Jul 24, 2023
    Posts:
    6
    hi, i am using Netcode for GameObjects for my game. I am using websocket. I get this error when the webgl client closes the browser.

    Unity editor version: 2022.3.4f1
    Netcode for GameObjects version: 1.5.1
    Unity Transport version: 2.0.1

     
  2. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    416
    Can you try updating Unity Transport to 2.0.2? We've fixed a few issues related to WebSockets where disconnect events would fail to be propagated properly (often resulting in the error you're seeing).
     
  3. gkunity123

    gkunity123

    Joined:
    Jul 24, 2023
    Posts:
    6
    After updating Unity Transport my problem was solved.