MineChat protocol
MineChat is a Rust library designed to facilitate communication with a Minecraft chat server. It provides asynchronous functions to send and receive messages, handle authentication, and manage connections.
Features
- Asynchronous message sending and receiving.
- Error handling with detailed error messages.
- UUID generation for client identification.
- Support for various message types (Auth, AuthAck, Chat, Broadcast, Disconnect).
- Integration with
tokiofor asynchronous I/O operations. - Logging for debugging and monitoring.
Usage
Sending a Message
To send a message to the server, use the send_message function:
use ;
use TcpStream;
async
Receiving a Message
To receive a message from the server, use the receive_message function:
use receive_message;
use TcpStream;
use BufReader;
async
Handling Linking
To handle linking with the server, use the handle_link function:
use handle_link;
async
License
This project is licensed under the MPL-2.0 License. See the LICENSE file for more details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Roadmap
- Expose a synchronous API.
Contact
For any questions or support, please open an issue on the GitHub repository.