Connecting Our First WebSocket

Understand the limits of WebSocket by creating its first application with Phoenix.

Create a WebSocket connection

To get up and running quickly, we’re going to leverage Phoenix’s initial project scaffold. This course will let us write and run code on the go, but if we want to follow along locally, this is a good time to go to the Appendix lesson in order to make sure that Elixir and Phoenix are set up properly on our system.

We’ll use mix to create our first example. We’ll be prompted to fetch and install dependencies during this process. Enter Y in order for the project to be started without manual steps.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy