Answer the question
In order to leave comments, you need to log in
How to share data between electron app and golang app?
There is a golang application with an open websocket connection on the desktop.
Is there an electron application, how can I exchange data between them?
PS Electron works with websockets out of the box. I wonder if there are other ways to exchange data between golang and electron. In theory, after all, you can write a library in C that will work as a buffer between them.
Answer the question
In order to leave comments, you need to log in
without code, of course, it’s hard to say what doesn’t work for you ...
But if I paired electron (front) + any back (including go), I would use messagepack over tcp or tls, which is more flexible and more productive
, I don’t understand why people use overhead in the form of a web socket somewhere other than a browser, on which there are simply no other options for a permanent connection (webrtc does not count, because other and even larger overhead solves tasks)
Use not a websocket then, but send messages through a normal tcp connection.
After all, you have a full-fledged node in the electron, it can do it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question