Connecting from phoenix to a 3rd party WebSockets API

Hello,

Kinda new to phoenix so please forgive my ignorance. I am trying to use a 3rd party WebSockets API by connecting to it from my phoenix app.

As of 2024, what is the recommended way to connect to a websockets endpoint? Is there some library I could use? I didn’t feel very sure with the ones I found so I thought asking here.

One of the libraries I found was this one: GitHub - Azolo/websockex: An Elixir Websocket Client

Thank you for your time.