Ejemplo n.º 1
0
 /// <summary>
 /// Event invocator for the <see cref="Close"/> event
 /// </summary>
 protected virtual void OnClose(WebSocketCloseData e)
 {
     Log.Trace($"WebSocketClientWrapper.OnClose(): Connection closed (IsOpen:{IsOpen}, State:{_client.State}): {_url}");
     Closed?.Invoke(this, e);
 }
 /// <summary>
 /// Event invocator for the <see cref="Close"/> event
 /// </summary>
 protected virtual void OnClose(WebSocketCloseData e)
 {
     Log.Trace($"WebSocketWrapper.OnClose(): Connection closed (IsOpen:{IsOpen}, ReadyState:{_wrapped.ReadyState}, Code:{e.Code}, Reason:{e.Reason}, WasClean:{e.WasClean}): {_url}");
     Closed?.Invoke(this, e);
 }