🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

Proxy Solace Connection with Javascript

I am using the solclientjs https://www.npmjs.com/package/solclientjs and need to use a proxy. Is this possible?

I tried the settings from https://docs.solace.com/API/API-Developer-Guide/Session-Props-Required.htm#Creating_ent_sessions_sess_props_host_proxies but could not get a connection.

Which library is solclientjs using inside for tcp connections? Maybe I can add the proxy there.
Tagged:

Answers

  • Tamimi
    Tamimi Member, Administrator, Employee Posts: 541 admin

    Hey there @Christian Jacobs ! What kind of error do you get (if any) when you attempt to set the session properties url via solace.SessionProperties.url?

  • Christian Jacobs
    Christian Jacobs Member Posts: 2

    Connection error: connect ETIMEDOUT

    From your question I assume that it works with other proxies?

    I can use our proxy like this:
    curl -I --proxy "http://proxy.domain:81" "https://target.domain:443"



    For the solace.SessionProperties.url I have tried:

    wss://target.domain:443%httpc://proxy.domain:81

    wss://target.domain:443%http://proxy.domain:81

    socks5 seems to be blocked unfortunately. I could not connect with curl.