N
N
Nadim Zakirov2021-01-31 11:04:47
JavaScript
Nadim Zakirov, 2021-01-31 11:04:47

How to organize communication between front and backend on Electron?

How to organize communication between JavaScript code on the front and JavaScript code on the NodeJS backend in Electron? It is clear that you can always use POST / GET requests or even web sockets if you need a permanent connection. However, are there other ways? Any special messaging events? Maybe there are some analogues of postMessage ?

Sorry for the possibly stupid question, I just don't know what exactly to look for in Yandex / Google search.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bqio, 2021-01-31
@zkrvndm

Read the documentation.
https://www.electronjs.org/docs/api/ipc-main

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question