A
A
Alexey2018-07-03 09:43:15
Data transfer
Alexey, 2018-07-03 09:43:15

How to pass information from lua to nodejs?

Are there currently options for sending messages (web socket?) from lua to a node on the local machine?
Those. there is a node server with socketIO, there is a third-party application that loads a certain lua file at startup and calls the main function in it once every 200ms. This function gives information about the surrounding objects in the application and you need to transfer this information somehow. In what way can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2018-07-03
@RidgeA

enough options:
- unix-sockets / windows-channels
- tcp
- http(s)
- upd
- queues
You need to choose only convenient for both sides.
If the lua script is not running all the time, then web sockets are not very suitable, you still need to establish a connection every time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question