[Modify] Polish it
This commit is contained in:
parent
c9a11bdad8
commit
d4b7e6dd2c
@ -1403,8 +1403,11 @@ namespace WebSocketSharp
|
|||||||
|
|
||||||
private bool processPingFrame (WebSocketFrame frame)
|
private bool processPingFrame (WebSocketFrame frame)
|
||||||
{
|
{
|
||||||
if (send (new WebSocketFrame (Opcode.Pong, frame.PayloadData, _client).ToArray ()))
|
var data = frame.PayloadData.ApplicationData;
|
||||||
_logger.Trace ("Returned a pong.");
|
if (!send (Fin.Final, Opcode.Pong, data, false))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
_logger.Debug ("A pong has been sent to respond to this ping.");
|
||||||
|
|
||||||
if (_emitOnPing)
|
if (_emitOnPing)
|
||||||
enqueueToMessageEventQueue (new MessageEventArgs (frame));
|
enqueueToMessageEventQueue (new MessageEventArgs (frame));
|
||||||
|
Loading…
Reference in New Issue
Block a user