From bc794a6b6bcc24291f79f2436c8f1d6d993c51aa Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 22 Nov 2015 16:02:57 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/WebSocket.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 4ebadd3c..7b3ca057 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -342,11 +342,11 @@ namespace WebSocketSharp /// /// Gets or sets a value indicating whether the emits - /// a event when receives a Ping. + /// a event when receives a ping. /// /// /// true if the emits a event - /// when receives a Ping; otherwise, false. The default value is false. + /// when receives a ping; otherwise, false. The default value is false. /// public bool EmitOnPing { get { @@ -1060,7 +1060,7 @@ namespace WebSocketSharp private bool processPingFrame (WebSocketFrame frame) { if (send (new WebSocketFrame (Opcode.Pong, frame.PayloadData, _client).ToArray ())) - _logger.Trace ("Returned a Pong."); + _logger.Trace ("Returned a pong."); if (_emitOnPing) enqueueToMessageEventQueue (new MessageEventArgs (frame)); @@ -1071,7 +1071,7 @@ namespace WebSocketSharp private bool processPongFrame (WebSocketFrame frame) { _receivePong.Set (); - _logger.Trace ("Received a Pong."); + _logger.Trace ("Received a pong."); return true; } @@ -1497,7 +1497,7 @@ namespace WebSocketSharp return; } - // Receive next asap because a Ping or Close needs a response to it. + // Receive next asap because the Ping or Close needs a response to it. receive (); if ((frame.IsControl && !(frame.IsPing && _emitOnPing)) || !frame.IsFinal) @@ -2245,10 +2245,10 @@ namespace WebSocketSharp } /// - /// Sends a Ping using the WebSocket connection. + /// Sends a ping using the WebSocket connection. /// /// - /// true if the receives a Pong to this Ping in a time; + /// true if the receives a pong to this ping in a time; /// otherwise, false. /// public bool Ping () @@ -2261,10 +2261,10 @@ namespace WebSocketSharp } /// - /// Sends a Ping with the specified using the WebSocket connection. + /// Sends a ping with the specified using the WebSocket connection. /// /// - /// true if the receives a Pong to this Ping in a time; + /// true if the receives a pong to this ping in a time; /// otherwise, false. /// /// @@ -2279,7 +2279,7 @@ namespace WebSocketSharp var msg = CheckPingParameter (message, out data); if (msg != null) { _logger.Error (msg); - error ("An error has occurred in sending the ping.", null); + error ("An error has occurred in sending a ping.", null); return false; }