ApplicationProtocolVersion,
AuthenticationType,
type ChargingStationData,
+ ConfigurationSection,
type ProcedureName,
type ProtocolRequest,
type ProtocolResponse,
break
default:
throw new BaseError(
- `Unsupported application protocol version ${this.uiServerConfiguration.version}`
+ `Unsupported application protocol version ${this.uiServerConfiguration.version} in '${ConfigurationSection.uiServer}' configuration section`
)
}
this.responseHandlers = new Map<
const authorizationProtocol = req.headers['sec-websocket-protocol']?.split(/,\s+/).pop()
const [username, password] = getUsernameAndPasswordFromAuthorizationToken(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- `${authorizationProtocol}${Array(((4 - (authorizationProtocol!.length % 4)) % 4) + 1).join('=')}`
+ `${authorizationProtocol}${Array(((4 - (authorizationProtocol!.length % 4)) % 4) + 1).join(
+ '='
+ )}`
.split('.')
.pop() ?? '',
next