sta / sta/websocket-sharp

Broadcasting to specific clients?

Open
#626 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

Hi folks, I want to use Broadcast on a specific set of clients, currently, I'm doing my own broadcast as such:

https://gist.github.com/Moe-Baker/82aefc1aa42f8b4c0814f94af863c9b7

This doesn't seem to be the best idea performance-wise as 'WebSocket.Sessions.SendToAsync' is taking up most of my CPU time, so I was wondering if there is a better option short of keeping my clients on different services.

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 linked gist and the WebSocket.Sessions.SendToAsync entry point to understand the current targeted-broadcast approach and its performance concern. No repository file or test is identified in the issue; done would require an agreed supported approach or a clear decision that the capability is out of scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.