-
Notifications
You must be signed in to change notification settings - Fork 13
Getting IP address and async event handlers #3
Copy link
Copy link
Open
Description
Hi, I am new to this library, switching to it from ocpp-eliftech as it looks like a more modern version.
I have set up an OCPP server, however when the CP connects to it, I can't see how to obtain the IP address it is connecting from. Is there a way to display the connecting IP, similar to getCpId()?
Also, in the example the event notifications are using callback functions:
client.on('BootNotification', (request: BootNotificationRequest, cb: (response: BootNotificationResponse) => void) => {
Is it possible to use async event handlers that return e.g. a Promise<BootNotificationResponse> instead of calling the cb() function?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels