tokio-tungstenite breaking changes
tokio-tungstenite 0.26.0 (December 17, 2024) is its newest release with breaking changes. The first: Signature changed tokio_tungstenite::WebSocketStream::close. Every breaking API change we have recorded in tokio-tungstenite on crates.io: 7 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.30.0, released July 11, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
tokio-tungstenite 0.26.0 breaking changes
- Signature changed
tokio_tungstenite::WebSocketStream::close
Was async fn close(&mut self, msg: Option<CloseFrame<'_>>) -> Result<(), WsError> where S: AsyncRead + AsyncWrite + Unpin,; now async fn close(&mut self, msg: Option<CloseFrame>) -> Result<(), WsError> where S: AsyncRead + AsyncWrite +... crates.io
tokio-tungstenite 0.24.0 breaking changes
- Behavior changed
Using a wss:// URL without the matching TLS feature enabled now returns a runtime error. Code that relied on the previous behavior must enable a TLS feature or handle the error. github.com
tokio-tungstenite 0.22.0 breaking changes
- Configuration changed
The release updates the TLS dependencies and bumps tungstenite to match 0.22.0. Users who pin or rely on specific TLS dependency versions may need to check their builds. github.com
tokio-tungstenite 0.20.0 breaking changes
- Behavior changed
Sink.feed
Sink::send() and Sink::feed() now buffer writes differently. Check code that relies on when messages are flushed or sent. github.com - Behavior changed
Sink.send
Sink::send() and Sink::feed() now buffer writes differently. Check code that relies on when messages are flushed or sent. github.com
tokio-tungstenite 0.19.0 breaking changes
- Signature changed
tokio_tungstenite::connect_async_tls_with_config
Was async fn connect_async_tls_with_config<R>(request: R, config: Option<WebSocketConfig>, connector: Option<Connector>) -> Result<(WebSocketStream<MaybeTlsStream<TcpStream>>, Response), Error> where R: IntoClientRequest + Unpin,; now... crates.io - Signature changed
tokio_tungstenite::connect_async_with_config
Was async fn connect_async_with_config<R>(request: R, config: Option<WebSocketConfig>) -> Result<(WebSocketStream<MaybeTlsStream<TcpStream>>, Response), Error> where R: IntoClientRequest + Unpin,; now async fn... crates.io
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.