sta / sta/websocket-sharp

Add Read(ref byte[] buffer) to WebSocket client. & Sessions.BroadcastExcept(byte[] data, string whitoutId) in WebSocketBehavior.

Open
#388 1 comment 1 reaction 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 Met your DLL today. She's perfect. But there is one small need to add a Read(ref byte[] buffer) method to a WebSocket (client);
And add a Sessions.BroadcastExcept(byte[] data, string whitoutId) in WebSocketBehavior. (to send data to all clients except the sender).
So that you can send the data immediately and immediately read them.
If that's possible, please add. Thank you.

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 locating the WebSocket client read methods and the WebSocketBehavior Sessions collection, then inspect how existing broadcast methods send data. Done means the client exposes Read(ref byte[] buffer) and Sessions.BroadcastExcept(byte[] data, string whitoutId) sends the data to every client except the identified sender, with tests covering both behaviors.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.