Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Unity freezes after 180 minutes of not sending any data but only receiving

Open
#102 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
csharp, unity

Research direction

No source file or test is named. Start by reproducing the freeze with Unity 6000.0.35f1, the standalone heartbeat server, and NativeWebSocket while comparing the Godot WebSocketPeer client; inspect the connection and receive/keepalive behavior. Done means identifying the cause of the three-hour lockup and verifying that the Unity client remains responsive during the same long-running test.

Written by the indexing model from the issue text.

Description

I have built a stand alone server that sends out a heartbeat every 5 seconds.

My Unity client connects to the server via websocket and displays the heartbeat message it receives. After 3 hours, Unity will freeze and lock up and I have to use task manager to kill it. I can repeat this 100%. Using Unity 6000.0.35f1

I have the same client program running in Godot via WebSocketPeer and it runs with no problem so it's not the server.

Does the NativeWebSocket require some type of "reply" from the client to maybe keep the connection alive?

Dominant language
C#
Stars
1.7k
Forks
206
PR merge metrics
No merged PRs in 30d

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from endel/NativeWebSocket

All issues in endel/NativeWebSocket

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.