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 ...

Get Phoenix Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.