onclose method

void onclose(
  1. dynamic reason
)

Called upon engine close.

@param {String} reason @api private

Implementation

void onclose(reason) {
  _logger.fine('close ($reason)');
  emitReserved('disconnecting', reason);
  connected = false;
  id = null;
  emitReserved('disconnect', reason);
}