Connecting a Lua client to a Socket.io NodeJS server? [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have a Node JS server running socket.io able to communicate with other clients using the socket.io-client package. I'm trying to now, write a client in Lua to connect to my socket.io server. Then when it's connected, be able to send and receive events. Any help would be highly appreciated.

If you want to try only with socket IO server then try https://github.com/ignacio/LuaNode-Socket.IO.
Else you have to go with some native websocket implementation.
Also have a look at this SO

Have you tried the LuaSocket module? https://luarocks.org/modules/luarocks/luasocket

Related

How do i listen to data posted to webhook in react? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have setup a webhook, that facebook posts data to. Basically its just a test webhook using https://webhook.site/.
Now how do i reflect this data on my client side (I am using react using create-react-app, but even a generic solution without using create react app will do ), How do i listen to this data, so i can refesh my frontend and show this data on my frontend.
You need a server that can listen to incoming requests. From this server you could establish a websocket connection to your frontend to reflect these changes in real time.
Some resources:
Hello World Express (Node.js)
Get Started with socket.io (Websocket wrapper)

is it possible to host a vpn server using node js? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I was just wondering if it's possible to host a VPN server using node js? This will make it very easy to create restrictions for the connection or block certain websites for example...
I can't find an npm package for hosting a vpn server. Any suggestions?
One of the solutions that I would suggest is:
To install openvpn. And to use and node client to interact with the openvpn server
Npm package https://github.com/luigiplr/node-openvpn

Node server for electron app [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm creating an aplication with Electron + React. The app has to allow users to save files on the server (something like Google Drive).
Now, im building the server side with express but i dont now how to send files to the client. How could i do it?
Would it be nice to use an FTP server instead of node?
Thanks.
Well there are 2 options regardless:
1) You just send your app unique link of the file witch expires after some time.
2) You stream the file to electron directly(Just google node streaming.
Thats about it.

NodeJS Application securing and sharing [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have an NodeJS application that runs on localhost and I want to share it with another person.
But I don't want to reveal my code. So how do I give it as an application rather than the code itself.
I need to make my application a binary file.One click run app.
There are modules out there which help in converting node application to binary(exe) .
Some are
EncloseJS, pkg
You can do that by using Ngrok after install it and run it; you can give access to your application URL and PORT for example http://localhost:3000 and then ngrok will give you a URL to access it from outside.

Socket.io server in the browser [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to use socket.io server in the browser.
Why do I need this? I have a difficult real-time app which connected through websockets, but I want to manually test it through web page (send & receive the signals). How can I do that?
P.S. Packages like mockSocket aren't feet to my needs. I don't need the mock, I need the tab in the browser :)
It seems there is no way to run websocket server in the browser now.

Categories

Resources