sta / sta/websocket-sharp

Parsing MessageEventArgs e.Data

Open
#300 6 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

Hi,

I can sucessfully receive messages from socket.io running on node into a Unity app.
io.send("echo")

Unity however is receiving an nonstandard format that can't be parsed into JSON.
42["message","echo"]

Is there an easy way to parse this into a valid JSON object?

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 tracing how MessageEventArgs e.Data is exposed and handled in websocket-sharp, then compare that behavior with the socket.io payload shown in the issue. Determine whether the requested result is valid JSON parsing or support for socket.io framing; done should be a clearly defined, tested way to handle the 42["message","echo"] message.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, node.js, unity
Domain
game-dev, networking
Issue type
Feature
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.