monoPosixHelper error when receiving message with "permessage-deflate"
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.1k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Contrary to Chrome, Firefox sends its websocket-client messages with the "permessage-deflate" extension, which causes a "monoPosixHelper" helper error in Unity upon reception of the first message. This error closes the connection to the client.
client code:
``
socket = new WebSocket("ws://192.168.20.223/get");
socket.onmessage=function(event){console.log("message:");console.log(event);}
socket.send("Hello World");
``
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
Use the supplied WebSocket client snippet to reproduce the failure in Unity, comparing Firefox's first message carrying the permessage-deflate extension with Chrome's behavior. Trace where that message is received and where the monoPosixHelper error closes the connection. Done means Firefox messages no longer trigger the error and the client connection remains open.
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
- Mostly clear
- Newbie friendliness
- 35/100