{"id":57457,"library":"tungstenite","title":"tungstenite","description":"Lightweight stream-based WebSocket implementation.","status":"active","version":"0.29.0","language":"rust","source_language":null,"source_url":"https://github.com/snapview/tungstenite-rs","tags":["websocket","networking","stream","async"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntungstenite = \"0.29.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tungstenite","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"WebSocket","correct":"use tungstenite::WebSocket;"}],"quickstart":{"code":"use tungstenite::{connect, Message};\nuse url::Url;\n\nfn main() {\n    let (mut socket, response) = connect(Url::parse(\"ws://echo.websocket.org\").unwrap()).unwrap();\n    socket.write_message(Message::Text(\"Hello\".into())).unwrap();\n    let msg = socket.read_message().unwrap();\n    println!(\"Received: {}\", msg);\n}","lang":"rust","description":"Connect to a WebSocket server and send/receive messages."},"warnings":[{"fix":"Use tokio::main or async-std::main and enable the appropriate feature.","message":"Requires an async runtime (tokio or async-std) for non-blocking I/O.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'async':11 'base':5 'implement':7 'lightweight':2 'network':9 'stream':4,10 'stream-bas':3 'tungstenit':1 'websocket':6,8","created_at":"2026-06-16T15:43:09.717429+00:00","updated_at":"2026-06-16T15:43:09.717429+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/snapview/tungstenite-rs","github":"https://github.com/snapview/tungstenite-rs","docs":"https://docs.rs/tungstenite/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}