What if... instead of using Node you used Deno from the same creators of Node? You also don't need socket.io either.
They literally have a simple and complete guide on their web site at the link below:
Deno Chat application with WebSockets