close method

void close()

Closes the underlying connection.

Implementation

void close() {
  if ('open' == conn.readyState) {
    conn.close();
    onClose('forced server close');
  }
}