Js and python communication


As electron is a open-source and very good ui creator I chose it, for my python project. I have finished my python code and my electron Ui. I now want to establish communication between both programs so that they can interact.
But with no luck have tried connecting via socket, but I have only achieved a communication of existance not of messages.

What is the best and easiest way to communicate between js and python on linux based systems ?
( file manipulation is something I donw want to do in order to communicate )


I don’t have any experience doing this, but a little searching has turned up SenecaJS, which sounds like it offers exactly what you want.