public class CloseEventArgs : EventArgs
Public Class CloseEventArgs _ Inherits EventArgs
public ref class CloseEventArgs : public EventArgs
A OnClose event occurs when the WebSocket connection has been closed.
If you would like to get the reason for the close, you should access the Code or Reason property.