Crates.io | Server_Example |
lib.rs | Server_Example |
version | 0.1.0 |
source | src |
created_at | 2024-08-27 06:29:30.067928 |
updated_at | 2024-08-27 06:29:30.067928 |
description | Example Server Using Rocket which has HTTP(S), WebSocket, DB and UDP Support |
homepage | |
repository | https://github.com/TheSR007/Rust_Projects/tree/master/Server_Example |
max_upload_size | |
id | 1352939 |
size | 83,376 |
HTTP(S)
WebSocket
Database(MongoDB)
UDP(Enet)
Navigate to the this directory and
cargo run --bin Example_Server
cargo run --bin enet_client
for the server and the enet client. To build
cargo build --release --bin Example_Server
cargo build --release --bin enet_client
build Directory Also has HTTP and HTTPS builds for Windows which runs on localhost 80 and 443 respectively (need manual setup for /db endpoint else you will get [ ])
enet_client.exe is also provided to checkout UDP client which connects to the Server, sends a Client Hello msg and then Disconnect
/
/ws
(WebSocket)
/db
(Database)
/shutdown
(UDP Server)