6 releases (stable)

1.0.4 Jun 29, 2025
1.0.3 Jun 23, 2025
1.0.2 Mar 28, 2025
1.0.1 Mar 26, 2025
0.1.0 Mar 24, 2025

#1771 in Network programming

Download history 362/week @ 2025-03-23 61/week @ 2025-03-30 7/week @ 2025-04-06 7/week @ 2025-04-13 5/week @ 2025-04-20 3/week @ 2025-04-27 2/week @ 2025-05-04 1/week @ 2025-05-11 1/week @ 2025-05-18 2/week @ 2025-06-08 129/week @ 2025-06-22 144/week @ 2025-06-29

275 downloads per month

MIT/Apache

130KB
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–34MB
~525K SLoC