The websocket URL the (re)connect attempt was made against.
The connect_error that failed the attempt.
Whether originalError was the relay rejecting the JWT.
Optional ReadonlycauseThe underlying error that triggered this one, if any.
Readonlyistrue when the relay rejected the connection's auth token (JWT); false for transport-level failures.
Optionalstack
A websocket (re)connect attempt failed — either a transport-level failure or the relay rejecting the connection's auth token (JWT). The message is derived from
originalError, including a hint when the failure looks like the URL pointing at the wrong server (aconnect_errorof'Invalid namespace').