I’m using Phoenix Channels to create an endpoint to be consumed by vanilla websockets (without client library).
To simplify things, I want to automatically join the user’s socket to various channels on connect.
Currently, the only way I can see to do it is if the client sends a
phx_join message; it doesn’t seem possible to do it from the server.
I’m looking for something of the form
socket = subscribe(socket, room).
What am I doing wrong?