sta / sta/websocket-sharp

Unity freezes when I try to connect to the web socket server

Open
#286 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I've just started working with websocket-sharp and Unity, I created client and server applications to test it in the same machine. Everything works fine using localhost as local address. Then, I tried to run the server and the client from different machines. Client calls the server with ws://192.168.1.x:8080/something but once I try to play the client from the Unity Editor or from the built app, it freezes for 10-20 seconds but it cannot connect. Currently I'm running the server on a Windows machine and the client on a MacbookPro. If I try to use explicitly an IP address in the same machine for both client and server apps, but I cannot connect. Any ideas?

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

No file, test, or entry point is named. Start by reproducing the Unity client and websocket-sharp server across the Windows and MacBook setup using the reported ws://192.168.1.x:8080/something address, then inspect where the connection waits or times out. Done means the client connects across machines without freezing.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.