Skip to content

feat: cloneable websocket sender with keepalive pings - #25

Merged
alshdavid merged 2 commits into
mainfrom
maintainance
Oct 16, 2026
Merged

alshdavid merged 2 commits into
mainfrom
maintainance

Conversation

@alshdavid

Copy link
Copy Markdown
Collaborator
  • Rework Websocket::upgrade to hand the callback a cloneable WebsocketSender (Arc<Mutex>) and WebsocketReceiver, spawning a Weak-backed ping task every 30s so idle proxies don't drop connections.
  • Rename send/recv to send_raw/recv_raw and add feature-gated JSON send/recv helpers, plus Response::json/Response::empty and a Method re-export.
  • Add Request::route set by the router to the matched route pattern, keeping telemetry cardinality bounded instead of using concrete paths.
  • Update websocket examples and README, and enable tokio sync/time features.

@alshdavid
alshdavid merged commit a0c7491 into main Oct 16, 2026
4 checks passed
@alshdavid
alshdavid deleted the maintainance branch October 16, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant