An Express route, which renders a page, and makes use of socket.io
Linting

The code reads well. 

There is one convention you missed: use \s to indicate whitespace.


const encode = name =&gt; {
    return name.replace(/ /g, "+");
};



const encode = name =&gt; {
    return name.replace(/\s/g, "+");
};


And the else below is redundant.


if (await api.data[0]) return await api.data[0];
else return { name: [], quote: [], deathCount: [] };



if (await api.data[0]) return await api.data[0];
return { name: [], quote: [], deathCount: [] };