   def parse_command(payload) do
     command_data = Poison.decode!(payload)
 
-    command = command_data["command"] |> String.to_atom
+    command =
+      case String.split(command_data["command"], "/") do
+        [one_command] -> one_command |> String.to_atom
+        list_of_commands -> list_of_commands |> Enum.map(&String.to_atom/1)
+      end
 
     case command_data["data"] do
       "" -> command


  def send_response({:reply, type, message, state}, socket_state, req) do
    data = %{
      type: type,
      timestamp: :os.system_time(:seconds),
      data: message,
    }


  @typedoc "Response to browser."
  @type response ::
    {:reply, atom | list(atom), any, any}
    | {:reply, atom | list(atom), any}
    | {:noreply, any}

  @doc ~S"""
