Loading Our First WebSocket

Understand the structure of the Phoenix application with the help of sample code.

Steps to load the hello_sockets application

We’ll need to perform another step to get the sample WebSocket to load. After the project is created, we’ll have an app.js file in the hello_sockets/assets/js/ directory. We’ll remove the comment on line 5 to import socket into the app.js file.

Get hands-on with 1000+ tech skills courses.