Skip to content

Commit

Permalink
Merge pull request #85 from e-flux-platform/add-connected-log-type
Browse files Browse the repository at this point in the history
Add specific log type for connected
  • Loading branch information
nick-jones authored Jul 29, 2024
2 parents 1490f0b + ece7a7e commit 4bba2b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ChargeStation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface CallLogItem {
session?: Session;
}

type LogType = 'command' | 'message-response' | 'message' | 'error';
type LogType = 'command' | 'message-response' | 'message' | 'error' | 'connected';

export default class ChargeStation {
private ocppVersion: OCPPVersion;
Expand Down Expand Up @@ -119,7 +119,7 @@ export default class ChargeStation {

this.connection.onConnected = () => {
this.connected = true;
this.log('message-response', '< Connected!');
this.log('connnected', '< Connected!');
this.emitter.emitEvent(EventTypes.StationConnected);
};
this.connection.onError = (error: Event) => {
Expand Down

0 comments on commit 4bba2b2

Please sign in to comment.