Is there a way to use Req as a WebSocket client?

Hello folks, I couldn’t find information regarding this. Maybe there is a package for Req to make WebSocket requests or since it is built on top of Finch which is itself built with Mint, there is somehow a way to use Mint.WebSocket. Any idea? I have old code that uses Gun but I would like to use a more modern approach centered on Elixir.

Req doesn’t do websockets, but you can look at tools using Mint.Websocket here (also notice the lack of req in the list :slight_smile: ):

3 Likes

Good idea the dependency search with depends:hexpm:mint_web_socket :slight_smile:

This is also linked in the sidebar on the right of the library page.