The broader issue is that web browsers don't support basic TCP socket connections, only a subset of HTTP sockets called "WebSockets", which require their own server setup.
This means that having a...