closeCode method

int? closeCode()

Implementation

int? closeCode() {
  return ws.connection.state == Disconnected()
      ? (ws.connection.state as Disconnected).code
      : null;
}