omnyhub 1.5.0
omnyhub: ^1.5.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