sta / sta/websocket-sharp

[Android] OnClose Called on Launch

Open
#588 0 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

Hello,

I am using Unity 2018.4.14f1.
and Configuration is set to .Net 4.x and IL2CPP.
i have added websocket-sharp to Assets\Plugins Folder.
Everything works fine on editor..but when i run it on device(Android) it directly calls OnClose everytime.
Any Suggestions would be of great help.
Code file attached for reference.

Socket.txt

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

Start by reviewing the attached Socket.txt and reproducing the issue on an Android device with Unity 2018.4.14f1, .NET 4.x, IL2CPP, and websocket-sharp in Assets\Plugins. Inspect the device logs and the OnClose path to determine why the connection closes immediately; done means identifying a reproducible Android-specific cause and documenting a verified fix or workaround.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.