CloseReceived class final

A close notification (Close frame) received from the peer through the WebSocket or a failure indication.

See WebSocket.events.

Inheritance

Constructors

CloseReceived([int? code, String reason = ''])

Properties

code → int?
A numerical code indicating the reason why the WebSocket was closed.
final
hashCode → int
The hash code for this object.
no setteroverride
reason → String
A textual explanation of the reason why the WebSocket was closed.
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.
override