WebSocketErrorCode enum

A specification of the cause of a WebSocketException.

Inheritance

Values

goingAway → const WebSocketErrorCode

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

protocolError → const WebSocketErrorCode

Protocol violation: invalid framing data.

dataError → const WebSocketErrorCode

Message payload cannot be handled.

abnormalClose → const WebSocketErrorCode

TCP socket closed unexpectedly.

badMessageFormat → const WebSocketErrorCode

Unparseable WebSocket message.

policyError → const WebSocketErrorCode

Message violated unspecified policy.

messageTooBig → const WebSocketErrorCode

Message is too large for peer to handle.

missingExtension → const WebSocketErrorCode

Peer doesn't provide a necessary extension.

cantFulfill → const WebSocketErrorCode

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

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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

values → const List<WebSocketErrorCode>
A constant List of the values in this enum, in order of their declaration.