Define a New Module

Let's define a new module in the game code.

We'll cover the following

Channel module

The first thing we need is a Channel module. Let’s get one started at islands_interface/lib/islands_interface_web/channels/game_channel.ex:

defmodule IslandsInterfaceWeb.GameChannel do
  use IslandsInterfaceWeb, :channel

  alias IslandsEngine.{Game, GameSupervisor}

Get hands-on with 1200+ tech skills courses.