DarkWS.Client.DarkWsProtocolException
DarkWS.Client
DarkWS.Client
DarkWsProtocolException Class
A malformed or unsupported incoming message.
public sealed class DarkWsProtocolException : System.Exception
Inheritance System.Object → System.Exception → DarkWsProtocolException
Constructors
DarkWsProtocolException(string, WebSocketCloseStatus) Constructor
Creates a protocol error with the close status used for fatal wire violations.
public DarkWsProtocolException(string message, System.Net.WebSockets.WebSocketCloseStatus closeStatus=System.Net.WebSockets.WebSocketCloseStatus.ProtocolError);
Parameters
message System.String
closeStatus System.Net.WebSockets.WebSocketCloseStatus
Properties
DarkWsProtocolException.CloseStatus Property
Close status used when the violation affects the connection.
public System.Net.WebSockets.WebSocketCloseStatus CloseStatus { get; }