Browse Source

[Modify] Polish it

pull/298/merge
sta 6 months ago
parent
commit
a5e6903252
  1. 9
      websocket-sharp/WebSocket.cs

9
websocket-sharp/WebSocket.cs

@ -2873,11 +2873,12 @@ namespace WebSocketSharp
throw new ArgumentException (msg, "code"); throw new ArgumentException (msg, "code");
} }
} }
else {
if (code == CloseStatusCode.MandatoryExtension) {
var msg = "MandatoryExtension cannot be used.";
if (!_client && code == CloseStatusCode.MandatoryExtension) {
var msg = "MandatoryExtension cannot be used.";
throw new ArgumentException (msg, "code");
throw new ArgumentException (msg, "code");
}
} }
if (reason.IsNullOrEmpty ()) { if (reason.IsNullOrEmpty ()) {

Loading…
Cancel
Save