localtunnel-0.1.5 is not a library.
Visit the last successful build:
localtunnel-0.0.9
Localtunnel
Localtunnel exposes your localhost endpoint to the world, user cases are:
- API testing
- multiple devices access to single data store
- peer to peer connection, workaround for NAT hole punching.
Client Usage
Known issue: the public proxy server is down, please setup your own server.
Use in CLI:
cargo install localtunnel
localtunnel client --host https://init.so --subdomain kaichao --port 3000
Use as a Rust library:
cargo add localtunnel-client
use ;
let = channel;
let config = ClientConfig ;
let result = open_tunnel.await?;
// Shutdown the background tasks by sending a signal.
let _ = notify_shutdown.send;
Server Usage
Use in CLI:
localtunnel server --domain init.so --port 3000 --proxy-port 3001 --secure
Use as a Rust library,
cargo install localtunnel-server
use ;
let config = ServerConfig ;
start.await?
Sponsor
Please help me build OSS 👉 GitHub Sponsors