Elixir implementation
We have our UI all setup and ready to go, so now we actually need to step through and start building this thing. We need to start off by telling Phoenix that we need to implement a Presence module that it can use to build things out. We'll need to create the Presence module ourselves, so we'll create a new file at lib/vocial_web/channels/presence.ex.
Any Presence module that we want to build will need to utilize the supplied Phoenix Presence module and describe how to actually interact with your application as a whole, including specifying what the OTP application is and which pubsub server the server and client should be using to communicate. We'll start off our Presence module by creating the file mentioned previously ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access