kick-rust
A Rust library for interacting with Kick.com WebSocket chat and API. This library provides a simple and robust way to connect to Kick.com chat rooms, receive real-time messages, and interact with the Kick.com API.
Features
- WebSocket Chat Client: Connect to Kick.com chat rooms and receive real-time messages
- Event Handling: Comprehensive event system for different types of chat events
- Automatic Reconnection: Built-in reconnection logic with configurable intervals
- Message Parsing: Automatic parsing of chat messages, emotes, and metadata
- API Client: HTTP client for interacting with Kick.com REST API
- Async/Await: Full async support using Tokio
- Type Safety: Strongly typed events and data structures
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
Quick Start
Basic WebSocket Chat Example
use KickClient;
async
Advanced Configuration
use ;
async
API Client Usage
use KickApiClient;
async
Event Types
The library supports various event types:
ChatMessage: Regular chat messagesMessageDeleted: When a message is deletedUserBanned: When a user is bannedUserUnbanned: When a user is unbannedSubscription: New subscriptionsGiftedSubscriptions: Gifted subscriptionsPinnedMessageCreated: When a message is pinnedStreamHost: Stream hosting eventsPollUpdate: Poll updatesPollDelete: Poll deletions
Configuration Options
KickWebSocketOptions
Requirements
- Rust 1.70 or higher
- Tokio runtime
License
This project is licensed under either of:
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
If you encounter any issues or have questions, please file an issue on the GitHub repository.
Now let me check if there are license files: