How to send Pong?
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.1k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
When I get ping I need to send back pong. But I can't find any possibility to do this.
private void OnMessage(object sender, MessageEventArgs e)
{
if (e.IsPing)
{
_ws.Send(Opcode.Pong); // or something like that
}
}
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 the OnMessage handler and the _ws.Send call shown in the issue, then inspect the websocket-sharp API for control-frame handling. Done means identifying the supported way to respond to an incoming ping with a pong and confirming the behavior with a focused reproduction or existing test if available.
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