JSPM

  • Created
  • Published
  • Downloads 86
  • Score
    100M100P100Q84822F
  • License ISC

client for hsync-server

Package Exports

  • hsync

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hsync) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

hsync

CI NPM

hsync is a reverse-proxy client for node.js and browsers that connects to an hsync-server.

You can share your local webserver as a secure public URL, as well as tunnel whatever tcp/ip traffic you'd like between two hsync clients.

installation

npm

npm i -g hsync

or add to a webpage

<script src="https://cdn.jsdelivr.net/npm/hsync/dist/hsync.min.js"></script>

this gives you a hsync global variable.

run

hsync

run with npx

npx hsync

run inside of a webpage

const hsyncCon = await hsync.dynamicConnect();

configuration

by default hsync will connect to the default hsync.tech server and allow a connection for up to 4 hours.

However you can pass flags to the command line or configure env variables:

flag long flag type env variable description
-p -port number PORT port for local webserver
-d --dynamic-host url HSYNC_DYNAMIC_HOST host to get a dynamic connection from
-s --hsync-server url HSYNC_SERVER hsync-server location ex: https://sub.mydomain.com
-hs --hsync-secret string HSYNC_SECRET password to connect to hsync-server
-llp --listener-local-port number HSYNC_LLP local port to open for listener
-lth --listener-target-host url HSYNC_LTH target host for listener
-ltp --listener-target-port number HSYNC_LTP target port for listener
-rip --relay-inbound-port number HSYNC_RIP inbound port for remote relay requests
-rth --relay-target-host url HSYNC_RTH target host for relay to open tcp connection on
-rtp --relay-target-port number HSYNC_RTP target port for relay to open tcp connection on