Skip to content

Add support for custom HTTP request functions in LoginSession and Htt…#55

Closed
jsupa wants to merge 1 commit into
DoctorMcKay:masterfrom
jsupa:custom-http-client
Closed

Add support for custom HTTP request functions in LoginSession and Htt…#55
jsupa wants to merge 1 commit into
DoctorMcKay:masterfrom
jsupa:custom-http-client

Conversation

@jsupa
Copy link
Copy Markdown

@jsupa jsupa commented Feb 14, 2026

…pClientAdapter

@DoctorMcKay
Copy link
Copy Markdown
Owner

What's the practical reason why you'd want to use an alternative HTTP client?

@jsupa
Copy link
Copy Markdown
Author

jsupa commented Feb 14, 2026

Sorry, creating this MR was a mistake :D. However, I really don't know why I keep getting this error with the SOCKS5 proxy:

Error: Client network socket disconnected before secure TLS connection was established
at TLSSocket.onConnectEnd (node:_tls_wrap:1732:19)
at TLSSocket.emit (node:events:536:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  code: 'ECONNRESET',
  path: undefined,
  host: undefined,
  port: undefined,
  localAddress: undefined,
  state: 1
}

I tried passing {agent: new SocksProxyAgent('socks5://xxx')} in the LoginSession options, but I'm still getting the same error. I was thinking if it might be possible to implement something similar to the steamcommunity npm package, where you can pass custom request setup options. So im try this with got package and ECONNRESET not happen anymore.

@jsupa
Copy link
Copy Markdown
Author

jsupa commented Feb 14, 2026

image With { socksProxy: "socks5://xxxxx" }

@jsupa jsupa closed this Feb 15, 2026
@jsupa
Copy link
Copy Markdown
Author

jsupa commented Feb 15, 2026

and i got this with http proxy
image

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants