<aside> 🔌 Production-level WebSocket support built on raw RFC 6455. Channel-based pub/sub with encode-once broadcast, typed per-socket data, backpressure handling, and security controls. Zero external dependencies.
</aside>
| Protocol | RFC 6455 (raw TCP, no dependencies) |
|---|---|
| Route registration | app.ws('/path', handlers) |
| Pub/Sub | ws.subscribe / ws.publish / app.publish (encode-once) |
| Backpressure | 'buffer' (default, safe) or 'drop' (real-time data) |
| Security | Origin validation, per-IP limits, RFC compliance |
| Type safety | Full generics — ws.data typed from upgrade handler |
| Overhead | Zero when no app.ws() routes registered |