Open Zeddex opened 1 year ago
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 } }
There is internal function WebSocketFrame.CreatePongFrame If I understood correctly, the pong response will be sent automatically.
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 } }