onclose method
void
onclose(
- dynamic reason
Called upon engine close
.
@param {String} reason @api private
Implementation
void onclose(reason) {
_logger.fine('close ($reason)');
emit('disconnecting', reason);
connected = false;
disconnected = true;
id = null;
emit('disconnect', reason);
}