Logic Machine Forum
How to implement a JSON websocket server? - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: How to implement a JSON websocket server? (/showthread.php?tid=2569)



How to implement a JSON websocket server? - Christian_EWW - 07.04.2020

Hello to all.

I'm planning to implement the OCPP 1.6 protocol. To control up to 20 EV chargers.
For that I would need to implement a JSON websocket server.
Can someone explain to me the best way of implementing a non blocking server which can handle multible clients?
There are so many options (luasocket, copas, lginx, ev, ...)
I already read a lot threads (most of them are describing clients), but it seems that there is no clear way how you should implement such a server.

Thank's a lot,
Christian


RE: How to implement a JSON websocket server? - admin - 07.04.2020

See this: https://forum.logicmachine.net/showthread.php?tid=1796


RE: How to implement a JSON websocket server? - Domoticatorino - 01.03.2021

(07.04.2020, 12:37)admin Wrote: See this: https://forum.logicmachine.net/showthread.php?tid=1796

HI,
I am following a project to implement OCPP Protocol. Is there anyone who has develope in LM as this thread request?

Thanks.


RE: How to implement a JSON websocket server? - admin - 02.03.2021

Which part do you want to implement: client (charge point) or server (central system)? There are no ready-made examples for OCPP. It's possible to implement this protocol but it's not an easy task.


RE: How to implement a JSON websocket server? - Domoticatorino - 03.03.2021

(02.03.2021, 07:27)admin Wrote: Which part do you want to implement: client (charge point) or server (central system)? There are no ready-made examples for OCPP. It's possible to implement this protocol but it's not an easy task.

Thank you Admin!

I have to communicate with one device only, hence best and easy way is use simply modbus.