omnyhub 1.3.0 copy "omnyhub: ^1.3.0" to clipboard
omnyhub: ^1.3.0 copied to clipboard

A reusable, protocol-agnostic HUB framework in pure Dart. Host multiple services on one port, route by host/path/header/protocol/auth, act as a reverse proxy over HTTP/HTTPS/WS/WSS with automatic Let' [...]

example/README.md

OmnyHub examples #

Each example is self-contained: it starts an in-process hub over loopback, runs a scenario, prints the results, and shuts everything down.

Example Shows
service_hosting_example.dart Hosting multiple services (HTTP + WebSocket) on one port, with dynamic add/remove.
reverse_proxy_example.dart Path- and host-based reverse proxying to a backend, mixed with a local service (hybrid).
auto_tls_example.dart Serving HTTPS with a static certificate (runnable); a Let's Encrypt config sketch.
lets_encrypt_example.dart A full automatic-TLS HTTPS server via Let's Encrypt (ACME). Dry-run by default; --run on a real host.
path_params_example.dart Path-parameter routing with RouterService (<endpoint>, <path|.*> tail, method dispatch).
layered_auth_example.dart Per-service + global authentication (AuthCoordinator, bypass/delegate/block) and host-regexp routing.
node_example.dart A worker node registering with a hub, discovery, heartbeats and an RPC.

Run any example with:

dart run example/<name>.dart
0
likes
0
points
281
downloads

Publisher

unverified uploader

Weekly Downloads

A reusable, protocol-agnostic HUB framework in pure Dart. Host multiple services on one port, route by host/path/header/protocol/auth, act as a reverse proxy over HTTP/HTTPS/WS/WSS with automatic Let's Encrypt TLS, and build distributed HUB/Node infrastructures.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, meta, multi_domain_secure_server, path, shelf, shelf_letsencrypt, shelf_web_socket, web_socket_channel

More

Packages that depend on omnyhub