Open bahkadomos opened 1 year ago
I've never used a proxy before. But sure, i'll take a look into this later
I've never used a proxy before. But sure, i'll take a look into this later
Thanks for the answer. My code above doesn't work either, as it turns out. Typescript throws a type error when trying to compile. The baileys package uses the type agent: Agent
, and passing an agent other than http-proxy-agent
results in this error.
So I did not manage to connect the https-proxy-agent
and socks-proxy-agent
packages. The standard package http-proxy-agent
works, but connection to whatsapp through the proxy raises an error. It looks like this package doesn't work with websocket over https protocol.
I can provide socks and http proxies for testing. My telegram: @shokoladny_zayac.
I've never used a proxy before. But sure, i'll take a look into this later
Thanks for the answer. My code above doesn't work either, as it turns out. Typescript throws a type error when trying to compile. The baileys package uses the type
agent: Agent
, and passing an agent other thanhttp-proxy-agent
results in this error.So I did not manage to connect the
https-proxy-agent
andsocks-proxy-agent
packages. The standard packagehttp-proxy-agent
works, but connection to whatsapp through the proxy raises an error. It looks like this package doesn't work with websocket over https protocol.I can provide socks and http proxies for testing. My telegram: @shokoladny_zayac.
Sure, i will reach you out later
Hey Ookamiixd, have you reached out to that person? I would like to know how he fixed the proble. Thank you, have a good easter
Really need proxy support and saving it in the session. I suppose you need to add
proxy
field into thesessions/add
endpoint. And add an endpoint likesessions/<:session>/update
with fieldproxy
that updates proxy in the session to the one passed.I've done it myself so far. Everything works, but I'm not sure if the proxy is being set. Can you check it right?
I also added a proxy field to the
sessions/add
endpoint. In the MySQL database the proxy is inserted into thedata
column.