add: broadcast socket id for user sockets

This commit is contained in:
trisua 2025-05-02 23:29:38 -04:00
parent ecde5d3d46
commit 1724f798ca
6 changed files with 48 additions and 16 deletions

View file

@ -52,10 +52,9 @@ async fn main() {
let html_path = write_assets(&config).await;
// governor
// (1000/125) * 32 = 256 requests/second
let governor_config = Arc::new(
GovernorConfigBuilder::default()
.per_millisecond(125)
.per_millisecond(75)
.burst_size(32)
.finish()
.unwrap(),