A
A
Alexey2019-02-12 21:49:05
Node.js
Alexey, 2019-02-12 21:49:05

Socket from lua to node and then to web page?

In general, I'm looking for a shovel, tell me how you can implement this and is it possible at all.
The bottom line is this:
there is a game server (Natural Selection 2), it has a shine mod (on lua), which has hooks that allow you to get information about the state of the server ( https://github.com/Person8880/Shine/wiki/Hook -Library ) and I had such a question, how can I efficiently transfer information from the lua to the node, which then broadcasts to the site via a websocket?
Or is there some simpler way to implement such functionality. I want to do something like a preview for the server on the site.

ps: I tried to get info through the steam server (gamedig), but the information there is very scarce, so this option was immediately dismissed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2019-02-12
@rPman

from lua it is almost always possible to make http requests, wrap the necessary information in them.
on your web server, wait for these requests and send them wherever you want

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question