[Modify] Edit it

This commit is contained in:
sta 2016-07-05 14:00:37 +09:00
parent 8839930cdb
commit fc4e4e1297

View File

@ -132,8 +132,8 @@ A `WebSocket.OnMessage` event occurs when the `WebSocket` receives a message.
```csharp ```csharp
ws.OnMessage += (sender, e) => { ws.OnMessage += (sender, e) => {
... ...
}; };
``` ```
`e` has passed as a `WebSocketSharp.MessageEventArgs`. `e` has passed as a `WebSocketSharp.MessageEventArgs`.
@ -167,13 +167,13 @@ And if you would like to notify that a **ping** has been received, via this even
```csharp ```csharp
ws.EmitOnPing = true; ws.EmitOnPing = true;
ws.OnMessage += (sender, e) => { ws.OnMessage += (sender, e) => {
if (e.IsPing) { if (e.IsPing) {
// Do something to notify that a ping has been received. // Do something to notify that a ping has been received.
... ...
return; return;
} }
}; };
``` ```
##### WebSocket.OnError Event ##### ##### WebSocket.OnError Event #####