Allow only one connection with specific credentials
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 am looking for simple way how to not allow connection with same credential which is already used by another connected client. I studied source codes a bit but I did not find simple way.
I suppose I could simulate this behavior with WebSocketServer.UserCredentialsFinder function which could return NULL for already connected clients but this would give no meaningful reply to client. Instead of custom message "Same credentials already used" he would get "Invalid credentials". Plus there is an issue of proper removing disconnected and dead clients from my collection handling "connected clients".
Any ideas?
Thanks a lot
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
Start with WebSocketServer.UserCredentialsFinder and trace how authentication failures are reported to clients. Review the connection lifecycle and the issue's proposed collection of connected clients, including how disconnected or dead clients would be removed. Done means duplicate credentials are rejected with a meaningful response and stale connections cannot block reuse.
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
- 20/100