Shameless plug: Check out @elixirstatus' other community project:
Credo, a new static code analysis tool that acts as a code linter, but also focusses on teaching coding practices and code consistency.
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.
Enjoy!
Read next New package for metrics-collection: Band
Shameless plug: Check out @elixirstatus' other community project:
Credo, a new static code analysis tool that acts as a code linter, but also focusses on teaching coding practices and code consistency.