Hello, I am experimenting with channels and am having trouble with module names – am doing something dumb.
The error message is
== Compilation error on file lib/koko_web/endpoint.ex ==
** (CompileError) lib/koko_web/endpoint.ex:4: module Koko.Web.RoomChannel is not loaded and could not be found
The relevant directory structure is
jxxmbp:koko_umbrella carlson$ tree apps/koko_web/lib/koko_web/
apps/koko_web/lib/koko_web/
├── application.ex
├── channels
│ ├── room_channel.exs
│ └── user_socket.ex
├── controllers
...
├── endpoint.ex
In file room_channel.exs
I have
defmodule Koko.Web.RoomChannel do
...
and in endpoint.ex
there is
import Koko.Web.RoomChannel