Cant connect client to WS server , both on unity
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.1k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hello , i've got a stupid problem. I cant connect to my server implemented in unity with websocket-sharp. ALl the time i've got an same error : WebSocket closed with reason: An exception has occurred while connecting. I tried everything. COuld you please help me , where i made mistake ?
SERVER :
wssv = new WebSocketServer ("ws://127.0.0.1:8080");
wssv.Start ();
CLIENT:
ws = new WebSocket("ws://127.0.0.1:8080");
ws.OnOpen += OnOpenHandler;
ws.OnMessage += OnMessageHandler;
ws.OnClose += OnCloseHandler;
ws.ConnectAsync();
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the server setup using WebSocketServer and the client setup using WebSocket.ConnectAsync shown in the issue, then reproduce the connection to ws://127.0.0.1:8080 and inspect the reported exception. No files or tests are named; done means identifying the connection failure and confirming a working Unity client/server connection.
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