Skip to content

Add proxy support for websocket connect#3449

Open
Morb0 wants to merge 1 commit intoserenity-rs:currentfrom
Morb0:feature/ws-proxy
Open

Add proxy support for websocket connect#3449
Morb0 wants to merge 1 commit intoserenity-rs:currentfrom
Morb0:feature/ws-proxy

Conversation

@Morb0
Copy link

@Morb0 Morb0 commented Dec 7, 2025

Continue of #2709
Fix #2479

@github-actions github-actions bot added client Related to the `client` module. gateway Related to the `gateway` module. labels Dec 7, 2025
@arqunis arqunis added enhancement An improvement to Serenity. breaking change The public API is changed, resulting in miscompilations or unexpected new behaviour for users labels Dec 11, 2025
#[cfg(feature = "voice")]
pub voice_manager: Option<Arc<dyn VoiceGatewayManager>>,
pub ws_url: Arc<Mutex<String>>,
pub ws_proxy: Arc<Mutex<Option<String>>>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This[...]

/// TLS error.
pub async fn new(
ws_url: Arc<Mutex<String>>,
ws_proxy: Arc<Mutex<Option<String>>>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] and this are breaking changes. Would you mind if you retargeted the PR to the next branch?

token,
seq,
},
d: WebSocketMessageData::Resume { session_id, token, seq },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated formatting change. This can happen if you're running the stable version of Rustfmt, since we use a few nightly-only options.

Suggested change
d: WebSocketMessageData::Resume { session_id, token, seq },
d: WebSocketMessageData::Resume {
session_id,
token,
seq,
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change The public API is changed, resulting in miscompilations or unexpected new behaviour for users client Related to the `client` module. enhancement An improvement to Serenity. gateway Related to the `gateway` module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could not establish a websocket connection through a proxy

2 participants