repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: rename src/charging-station/Utils.ts -> src/charging-station/Helpers.ts
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ui-server
/
UIHttpServer.ts
diff --git
a/src/charging-station/ui-server/UIHttpServer.ts
b/src/charging-station/ui-server/UIHttpServer.ts
index ee12b3f4de996ed3a8f86b2a4db97949e9ebaf4e..e11fd4bdc662e18597887dca4c5273578a6f6724 100644
(file)
--- a/
src/charging-station/ui-server/UIHttpServer.ts
+++ b/
src/charging-station/ui-server/UIHttpServer.ts
@@
-6,6
+6,7
@@
import { AbstractUIServer } from './AbstractUIServer';
import { UIServerUtils } from './UIServerUtils';
import { BaseError } from '../../exception';
import {
import { UIServerUtils } from './UIServerUtils';
import { BaseError } from '../../exception';
import {
+ ApplicationProtocolVersion,
type ProcedureName,
type Protocol,
type ProtocolRequest,
type ProcedureName,
type Protocol,
type ProtocolRequest,
@@
-43,9
+44,12
@@
export class UIHttpServer extends AbstractUIServer {
this.startHttpServer();
}
this.startHttpServer();
}
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
public sendRequest(request: ProtocolRequest): void {
public sendRequest(request: ProtocolRequest): void {
- // This is intentionally left blank
+ switch (this.uiServerConfiguration.version) {
+ case ApplicationProtocolVersion.VERSION_20:
+ this.httpServer.emit('request', request);
+ break;
+ }
}
public sendResponse(response: ProtocolResponse): void {
}
public sendResponse(response: ProtocolResponse): void {