isFatal property
bool
get
isFatal
Whether this close code indicates a fatal error that should not be retried (e.g. bad auth, invalid shard config, bad API version).
Implementation
bool get isFatal {
switch (this) {
case GatewayCloseCode.authenticationFailed:
case GatewayCloseCode.invalidShard:
case GatewayCloseCode.shardingRequired:
case GatewayCloseCode.invalidApiVersion:
return true;
default:
return false;
}
}