Is it correct that channels/user_socket.ex file can be safely removed when developing an API only back-end?

Is it true that channels/user_socket.ex file can be safely removed when making an API only application accessed by a JS library on the front-end?

I have read that in some online tutorial.

2 Likes

Unless you plan on using channels then yes it should be. It might be referenced from somewhere else but should be save to remove.

3 Likes

Don’t forget to remove socket ... from endpoint.ex.

3 Likes