15 references to WebSocketException
System.Net.HttpListener (6)
System\Net\WebSockets\HttpWebSocket.cs (6)
41throw new WebSocketException(WebSocketError.UnsupportedProtocol, 73throw new WebSocketException(WebSocketError.UnsupportedProtocol, 108throw new WebSocketException(WebSocketError.NotAWebSocket, 120throw new WebSocketException(WebSocketError.HeaderError, 128throw new WebSocketException(WebSocketError.UnsupportedVersion, 151throw new WebSocketException(WebSocketError.HeaderError,
System.Net.WebSockets (3)
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (1)
82new WebSocketException(WebSocketError.Faulted, SR.net_Websockets_KeepAlivePingTimeout));
System\Net\WebSockets\WebSocket.cs (1)
107throw 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)
170throw new WebSocketException( 347throw new WebSocketException(WebSocketError.HeaderError, 455throw new WebSocketException(WebSocketError.NotAWebSocket, SR.Format(SR.net_WebSockets_ConnectStatusExpected, (int)response.StatusCode, (int)HttpStatusCode.SwitchingProtocols)); 469throw new WebSocketException(WebSocketError.NotAWebSocket, SR.Format(SR.net_WebSockets_ConnectStatusExpected, (int)response.StatusCode, (int)HttpStatusCode.OK)); 527throw new WebSocketException(WebSocketError.HeaderError, SR.Format(SR.net_WebSockets_InvalidResponseHeader, name, hsv)); 530throw new WebSocketException(WebSocketError.Faulted, SR.Format(SR.net_WebSockets_MissingResponseHeader, name));