|0.3.0||Jul 29, 2021|
|0.2.0||Dec 3, 2020|
|0.1.6||Sep 23, 2020|
|0.1.3||Aug 28, 2020|
#56 in WebSocket
495 downloads per month
Used in qusb2snes-client
A WebSocket client implementation.
use websockets::WebSocket; let mut ws = WebSocket::connect("wss://echo.websocket.org/").await?; ws.send_text("foo".to_string()).await?; ws.receive().await?; ws.close(None).await?;
- Simple API
- Async/await (tokio runtime)
- TLS support (automatically detected)
WebSocket type manages the WebSocket connection.
Use it to connect, send, and receive data.
Data is sent and received through
This project is licensed under the MIT license.