mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 09:51:22 +00:00
fix(ci): fix discord proxy websocket binding and bluebubbles timeout status
This commit is contained in:
@@ -79,19 +79,16 @@ function createDiscordGatewayPlugin(params: {
|
||||
params.runtime.log?.("discord: gateway proxy enabled");
|
||||
|
||||
class ProxyGatewayPlugin extends GatewayPlugin {
|
||||
#proxyAgent: HttpsProxyAgent<string>;
|
||||
|
||||
constructor(proxyAgent: HttpsProxyAgent<string>) {
|
||||
constructor() {
|
||||
super(options);
|
||||
this.#proxyAgent = proxyAgent;
|
||||
}
|
||||
|
||||
createWebSocket(url: string) {
|
||||
return new WebSocket(url, { agent: this.#proxyAgent });
|
||||
return new WebSocket(url, { agent });
|
||||
}
|
||||
}
|
||||
|
||||
return new ProxyGatewayPlugin(agent);
|
||||
return new ProxyGatewayPlugin();
|
||||
} catch (err) {
|
||||
params.runtime.error?.(danger(`discord: invalid gateway proxy: ${String(err)}`));
|
||||
return new GatewayPlugin(options);
|
||||
|
||||
Reference in New Issue
Block a user