No. Allowing TCP-level access to arbitrary servers will cause all kinds of security problems. Imagine a website that made every user connect to an SMTP server and start sending spam emails ... all of a sudden you have a massively distributed spam attack, especially when combined with an XSS attack on the main site. Web sockets have a small number of frames around it, designed to make such attacks impossible without adding too much TCP overhead.
source
share