If you’re building an Elixir or Phoenix API with WebSockets (eg, Phoenix Channels), and if you’re at all like me, you probably only use
phoenix.js for its WebSocket connector.
Alternatively, you may use Sockette, a tiny (350 byte) WebSocket wrapper that implements auto-reconnection & that allows you to reuse config / instances.
It’s not a drop-in replacement for the Phoenix library by any means, but it definitely allows you to get going quickly if you just need a bare minimum solution.
Read next New package for metrics-collection: Band