WebSocketErrorCode enum Null safety

A specification of the cause of a WebSocketException.

Implemented types

Constants

abnormalClose → const WebSocketErrorCode

TCP socket closed unexpectedly.

const WebSocketErrorCode(3)
badMessageFormat → const WebSocketErrorCode

Unparseable WebSocket message.

const WebSocketErrorCode(4)
cantFulfill → const WebSocketErrorCode

Can't fulfill request due to "unexpected condition".

const WebSocketErrorCode(8)
dataError → const WebSocketErrorCode

Message payload cannot be handled.

const WebSocketErrorCode(2)
goingAway → const WebSocketErrorCode

Peer has to close, e.g. because host app is quitting.

const WebSocketErrorCode(0)
messageTooBig → const WebSocketErrorCode

Message is too large for peer to handle.

const WebSocketErrorCode(6)
missingExtension → const WebSocketErrorCode

Peer doesn't provide a necessary extension.

const WebSocketErrorCode(7)
policyError → const WebSocketErrorCode

Message violated unspecified policy.

const WebSocketErrorCode(5)
protocolError → const WebSocketErrorCode

Protocol violation: invalid framing data.

const WebSocketErrorCode(1)
values → const List<WebSocketErrorCode>

A constant List of the values in this enum, in order of their declaration.

const List<WebSocketErrorCode>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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