Skip to content

totaljs/proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Total.js Proxy (BETA)

It's a simple NGROK alternative.

This repository contains two apps that can make a proxy between localhost and a domain on your server. All communication is via the WebSocket. The client app connects to the server application through the WebSocket.

Functionality:

  • HTTP requests
  • WebSocket (is not supported)

Requirements

  • Node.js Platform +19
  • Total.js v5 framework $ npm install total5

Server

The server app must be hosted on your server and must be available via HTTP protocol because the client will connect to it via WebSocket. This app is a standard Total.js web app.

Installation:

cd server
npm install
npm start
# or run it via: node index.js

Client

The client app connects to the proxy server app. After the client connects, the server will "redirect" all HTTP requests to your local port.

Installation:

cd server
npm install
node client.js http://yourserverproxy.com 8000
# node client.js http://yourserverproxy.com 127.0.0.1:8000

# Help:
# node client.js SERVER_ENDPOINT LOCAL_PORT
# node client.js SERVER_ENDPOINT LOCAL_HOST:LOCAL_PORT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published