From 11b26040b8b74e49da0da74604072684b7687467 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 25 Aug 2014 14:45:00 +0900 Subject: [PATCH] Modified 'WebSocket.OnError Event' --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 26874f3c..b6585474 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,8 @@ ws.OnError += (sender, e) => { `e.Message` property returns a `string` that represents the error message. So you should use it to get the error message. +And if the error is due to an exception, you can get the `System.Exception` instance that caused the error, by using `e.Exception` property. + ##### WebSocket.OnClose Event ##### A `WebSocket.OnClose` event occurs when the WebSocket connection has been closed.