4 releases (stable)

new 1.0.2 Mar 28, 2025
1.0.1 Mar 26, 2025
0.1.0 Mar 24, 2025

#1665 in Network programming

Download history 81/week @ 2024-12-27 60/week @ 2025-01-03 6/week @ 2025-01-10 209/week @ 2025-03-21

209 downloads per month

MIT/Apache

120KB
2K SLoC

WebSocket Bot for videocall.rs

A high-performance WebSocket bot client built with Rust and Tokio for the videocall.rs platform. This bot connects to a specified WebSocket endpoint and echoes messages from a designated user, making it ideal for testing, monitoring, or automating interaction with videocall.rs rooms.

Features

  • Asynchronous architecture using Tokio runtime
  • Configurable client scaling with support for multiple concurrent connections
  • Flexible deployment using environment variables or .env configuration
  • Minimal resource footprint typical of Rust applications

Quick Start

Prerequisites

  • Rust and Cargo installed
  • A running videocall.rs server instance or other compatible WebSocket endpoint

Configuration

Configure the bot using environment variables:

Variable Description Example
N_CLIENTS Number of concurrent bot clients to spawn 1
ENDPOINT WebSocket server endpoint URL ws://localhost:3030
ROOM Room identifier to join redrum
ECHO_USER User ID whose messages will be echoed test

Running the Bot

N_CLIENTS=1 ENDPOINT=ws://localhost:3030 ROOM=redrum ECHO_USER=test cargo run

Using .env File

Create a .env file in the project root with the following content:

N_CLIENTS=1
ENDPOINT=ws://localhost:3030
ROOM=redrum
ECHO_USER=test

Then simply run:

cargo run

Contributing

This bot is part of the videocall.rs project, an open-source, high-performance video conferencing platform built with Rust. Contributions are welcome!

License

MIT License - See the main project repository for details.

Dependencies

~19–33MB
~520K SLoC