Modified 'WebSocket.OnError Event'

This commit is contained in:
sta 2014-08-25 14:45:00 +09:00
parent 88747db6fa
commit 11b26040b8

View File

@ -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. `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 ##### ##### WebSocket.OnClose Event #####
A `WebSocket.OnClose` event occurs when the WebSocket connection has been closed. A `WebSocket.OnClose` event occurs when the WebSocket connection has been closed.