8 ms·
I got pretty far in the beginning just by reading the docs on Phoenix channels [0]. I was learning Phoenix and ReactJS at the same time and got a pretty simple
by dqv 5y ago
I got pretty far in the beginning just by reading the docs on Phoenix channels [0]. I was learning Phoenix and ReactJS at the same time and got a pretty simple Redux thunk that interacted with Phoenix Channels in a few days. I'm not sure if that was the optimal way to do it, but it was really cool interacting with the application from IEx (elixir shell).
You might find an interesting (albeit more complex) entry point by interacting with Phoenix Channels from your Node.js app using the Channels Node.js client [1] and within the frontend itself.
[0]: https://hexdocs.pm/phoenix/channels.html https://hexdocs.pm/phoenix/channels.html
[1]: https://www.npmjs.com/package/phoenix-channels https://www.npmjs.com/package/phoenix-channels