Dart API Referencedart:ioCloseEvent

CloseEvent Interface

Event delivered when a web socket connection is closed.

Extends

Event

Methods

Code int get code() #

Returns the web socket connection close code provided by the server.

int get code();

Code String get reason() #

Returns the web socket connection close reason provided by the server.

String get reason();

Code bool get wasClean() #

Returns whether the connection was closed cleanly or not.

bool get wasClean();