Open Tarekmo110 opened 1 year ago
Hi,
Please can you clarify a few things for me?
Thanks.
I will use it to create a central system but i was just testing things out first and familiarizing myself with this module.
I have a simple ui with a connect button that tries to establish a web-socket connection, as a charge point, with the server i created using the example you gave in express
I get this in the browser https://imgur.com/a/bzsPmKk
And I get this in the server https://imgur.com/a/WWyW64S I added some console.log to client.js
if u need any more info please let me know
From your screenshots, it looks like the server is crashing, which is why your client's websocket is disconnecting.
Can we take a look at your server code to see what might be causing that to happen?
I'm trying to simulate a charge point and connect to the server. I think the server is working fine but the problem is how i connect to it. I'm using this to connect const newSocket = new WebSocket(
${ocppJEndpointUrl}/${encodeURIComponent(chargePointIdentity)}
,['ocpp1.6', 'ocpp1.5']); so it should look like this ws://localhost:3000/ABCD with protocols [ocpp1.6,ocpp1.5] this is the error i get