WebSocketClose class abstract final

Close codes this package uses.

RFC 6455 reserves everything below 3000 for the protocol itself, and web_socket_channel enforces that: an application may only send 1000 or a code in 3000-4999. That rules out 1011, the code that would otherwise say "the server broke", so a failure is reported as handlerFailed.

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

goingAway → const int
The server is shutting down.
handlerFailed → const int
The handler threw, so the connection could not continue.
normal → const int
The conversation finished normally.