When a websocket connection is being created and an HTTP Upgrade request is sent, if the server returns an HTTP response back with an error code (such as 403 Forbidden, 503 Service Unavailable), this error code is not propagated back to the caller in the OnError event. The caller has no way to figure out why the connection attempt failed.
When a websocket connection is being created and an HTTP Upgrade request is sent, if the server returns an HTTP response back with an error code (such as 403 Forbidden, 503 Service Unavailable), this error code is not propagated back to the caller in the OnError event. The caller has no way to figure out why the connection attempt failed.