Accessible useragent name for client?

Open
#70 8 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
csharp
Domain
networking

Research direction

Start with the WebSocket class referenced in the example and trace where the client user-agent is set for the outgoing connection. Make that value configurable through the requested property, then verify that a client can assign it before connecting and that the connection uses the assigned value.

Written by the indexing model from the issue text.

Description

Could you make the user agent property accessible so we can change it at wish for what the client will send as user agent?

using (var ws = new WebSocket ("wss://example.com"))
{
    ws.UserAgent = "something I can define easily with this accessible property";
}
Dominant language
C#
Stars
6.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

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.

More from sta/websocket-sharp

All issues in sta/websocket-sharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.