15 references to WebSocketException
System.Net.HttpListener (6)
System\Net\WebSockets\HttpWebSocket.cs (6)
41
throw new
WebSocketException
(WebSocketError.UnsupportedProtocol,
73
throw new
WebSocketException
(WebSocketError.UnsupportedProtocol,
108
throw new
WebSocketException
(WebSocketError.NotAWebSocket,
120
throw new
WebSocketException
(WebSocketError.HeaderError,
128
throw new
WebSocketException
(WebSocketError.UnsupportedVersion,
151
throw new
WebSocketException
(WebSocketError.HeaderError,
System.Net.WebSockets (3)
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (1)
82
new
WebSocketException
(WebSocketError.Faulted, SR.net_Websockets_KeepAlivePingTimeout));
System\Net\WebSockets\WebSocket.cs (1)
107
throw new
WebSocketException
(WebSocketError.InvalidState, SR.Format(SR.net_WebSockets_InvalidState, state, validStatesText));
System\Net\WebSockets\WebSocketException.cs (1)
23
:
this
(error, GetErrorMessage(error))
System.Net.WebSockets.Client (6)
System\Net\WebSockets\WebSocketHandle.Managed.cs (6)
170
throw new
WebSocketException
(
347
throw new
WebSocketException
(WebSocketError.HeaderError,
455
throw new
WebSocketException
(WebSocketError.NotAWebSocket, SR.Format(SR.net_WebSockets_ConnectStatusExpected, (int)response.StatusCode, (int)HttpStatusCode.SwitchingProtocols));
469
throw new
WebSocketException
(WebSocketError.NotAWebSocket, SR.Format(SR.net_WebSockets_ConnectStatusExpected, (int)response.StatusCode, (int)HttpStatusCode.OK));
527
throw new
WebSocketException
(WebSocketError.HeaderError, SR.Format(SR.net_WebSockets_InvalidResponseHeader, name, hsv));
530
throw new
WebSocketException
(WebSocketError.Faulted, SR.Format(SR.net_WebSockets_MissingResponseHeader, name));