Skip to content

feat(transport-ws): replace tokio-tungstenite with yawc#3684

Open
ifdario wants to merge 1 commit intoalloy-rs:mainfrom
infinitefield:main
Open

feat(transport-ws): replace tokio-tungstenite with yawc#3684
ifdario wants to merge 1 commit intoalloy-rs:mainfrom
infinitefield:main

Conversation

@ifdario
Copy link
Copy Markdown

@ifdario ifdario commented Feb 13, 2026

Motivation

  • Optimize application bandwidth through compression
  • Reduce allocations (likely, could improve in the future)

Solution

Replace tokio-tungstenite and ws_stream_wasm with yawc for WebSocket support. yawc provides built-in RFC 7692 compression, near-zero-copy frame processing, and SIMD-optimized masking. It also unifies native and WASM targets under a single dependency.

UTF-8 validation is always enabled to prevent panics on malformed text frames.

PR Checklist

  • [-] Added Tests
  • Added Documentation
  • Breaking changes

Replace tokio-tungstenite and ws_stream_wasm with yawc for WebSocket
support. yawc provides built-in RFC 7692 compression, near-zero-copy
frame processing, and SIMD-optimized masking. It also unifies native
and WASM targets under a single dependency.

UTF-8 validation is always enabled to prevent panics on malformed
text frames.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant