A simple, multi-room chat server that stores chat content using its create/2
function and sends it back to the user via its get/1
function.
git clone
iex -S mix
ChatServer.Supervisor.start_link
ChatServer.Supervisor.start_room("lobby")
ChatServer.get("lobby") #=> []
ChatServer.create("lobby", "hello world")
ChatServer.get("lobby") #=> [%ChatServer.Message{content: "hello world", username: "anon"}]