LinkRejected class final
Connection rejected by the robot (HTTP 401/403: missing or invalid token).
Reconnection stops automatically; fix credentials and call connect again.
Constructors
- LinkRejected({required int statusCode, required String reason})
-
Creates a rejected link state with the HTTP
statusCodeandreason.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- reason → String
-
Human-readable rejection message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
HTTP status code returned during handshake (for example,
401or403).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited