Skip to content

Commit

Permalink
switched to default config for tokio tungstonight
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaven committed May 8, 2024
1 parent c51a5d2 commit 33247af
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions twitch_listener_service/src/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,8 @@ impl WebsocketClient {
eyre::Error,
> {
tracing::info!("connecting to twitch");
let config = tungstenite::protocol::WebSocketConfig {
max_write_buffer_size: 0,
write_buffer_size: (128 << 10), //128 Kib
max_send_queue: None,
max_message_size: Some(64 << 20), // 64 MiB
max_frame_size: Some(16 << 20), // 16 MiB
accept_unmasked_frames: false,
};
let (socket, _) =
tokio_tungstenite::connect_async_with_config(&self.connect_url, Some(config), false)
tokio_tungstenite::connect_async_with_config(&self.connect_url, None, false)
.await
.context("Can't connect")?;
Ok(socket)
Expand Down

0 comments on commit 33247af

Please sign in to comment.