UpgradeProtocol class
Represents a protocol that can be negotiated during connection upgrade
Constructors
- UpgradeProtocol.new({required String id, int priority = 0})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The protocol identifier (e.g., '/noise', '/tls/1.0.0', '/yamux/1.0.0')
final
- priority → int
-
The priority of this protocol (higher numbers = higher priority)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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