onclose method
void
onclose(
- dynamic error
Called upon engine close.
@api private
Implementation
void onclose(error) {
_logger.fine('onclose');
cleanup();
backoff!.reset();
readyState = 'closed';
emit('close', error['reason']);
if (_reconnection == true && !skipReconnect) {
reconnect();
}
}