Dart API Referencedart:ioWebSocketStatus

WebSocketStatus abstract class

Web socket status codes used when closing a web socket connection.

abstract class WebSocketStatus {
  static const int NORMAL_CLOSURE = 1000;
  static const int GOING_AWAY = 1001;
  static const int PROTOCOL_ERROR = 1002;
  static const int UNSUPPORTED_DATA = 1003;
  static const int RESERVED_1004  = 1004;
  static const int NO_STATUS_RECEIVED = 1005;
  static const int ABNORMAL_CLOSURE = 1006;
  static const int INVALID_FRAME_PAYLOAD_DATA = 1007;
  static const int POLICY_VIOLATION = 1008;
  static const int MESSAGE_TOO_BIG = 1009;
  static const int MISSING_MANDATORY_EXTENSION = 1010;
  static const int INTERNAL_SERVER_ERROR = 1011;
  static const int RESERVED_1015 = 1015;
}

Static Properties

const int ABNORMAL_CLOSURE #

static const int ABNORMAL_CLOSURE = 1006;

const int GOING_AWAY #

static const int GOING_AWAY = 1001;

const int INTERNAL_SERVER_ERROR #

static const int INTERNAL_SERVER_ERROR = 1011;

const int INVALID_FRAME_PAYLOAD_DATA #

static const int INVALID_FRAME_PAYLOAD_DATA = 1007;

const int MESSAGE_TOO_BIG #

static const int MESSAGE_TOO_BIG = 1009;

const int MISSING_MANDATORY_EXTENSION #

static const int MISSING_MANDATORY_EXTENSION = 1010;

const int NO_STATUS_RECEIVED #

static const int NO_STATUS_RECEIVED = 1005;

const int NORMAL_CLOSURE #

static const int NORMAL_CLOSURE = 1000;

const int POLICY_VIOLATION #

static const int POLICY_VIOLATION = 1008;

const int PROTOCOL_ERROR #

static const int PROTOCOL_ERROR = 1002;

const int RESERVED_1004 #

static const int RESERVED_1004  = 1004;

const int RESERVED_1015 #

static const int RESERVED_1015 = 1015;

const int UNSUPPORTED_DATA #

static const int UNSUPPORTED_DATA = 1003;