/// <summary>
 /// Called when the WebSocket instance for a session gets an error.
 /// </summary>
 /// <param name="e">
 /// A <see cref="System.IO.ErrorEventArgs"/> that represents the event data passed
 /// from a <see cref="WebSocket.OnError"/> event.
 /// </param>
 protected virtual void OnError(WebSocketSharp.NetCore.ErrorEventArgs e)
 {
 }
 private void onError(object sender, WebSocketSharp.NetCore.ErrorEventArgs e)
 {
     OnError(e);
 }