WebSockets
A WebSocket client implementation.
use WebSocket;
let mut ws = connect.await?;
ws.send_text.await?;
ws.receive.await?;
ws.close.await?;
Features
- Simple API
- Async/await (tokio runtime)
- TLS support (automatically detected)
Usage
The WebSocket type manages the WebSocket connection.
Use it to connect, send, and receive data.
Data is sent and received through Frames.
License
This project is licensed under the MIT license.
Credits
- Thank you to @thsioutas for adding support for custom TLS configuration
- Thank you to @secana for making the write half
Send