I had follow guide to test channel, easy way to edit code,
and static compile seems done, then i cant get anything message output in browser console. If its right, it need output ‘Joined successfully’ in console.
20 Dec 06:47:35 - info: compiling
20 Dec 06:47:36 - info: compiled 6 files into 2 files, copied 3 in 7 sec
seems have not seeing socket.js file in firebug network.
added room_channel.ex file in web\channels\room_channel.ex
def join("rooms:lobby", _message, socket) do
{:ok, socket}
end
def join("rooms:" <> _private_room_id, _params, _socket) do
{:error, %{reason: "unauthorized"}}
end
end
The error means that your “rooms:lobby” isn`t defined the same way on the client and server.
if you want to you could share the code with me and we`ll look at it together. would be good practice for me as well. I struggled a bit with the same thing.
If you was occured the same question, you must have to go through the topic that you defined in every where, Actually, when you figured it out, You will found this problem.