What I want to do
=================

Make a simple socket connection to a server on the browser. I want to not send any header information with the socket connection.

The Problem
===========

It looks like I am unable to make a socket connection with javascript that does not send header data ([Is there a way to do a tcp connection to an IP with javascript?](https://stackoverflow.com/questions/34682481/is-there-a-way-to-do-a-tcp-connection-to-an-ip-with-javascript)).

I thought maybe I could make a connection with a chrome extension, however it looks like the socket API is only available for chrome apps ([Google Chrome Socket API in extensions](https://stackoverflow.com/questions/13921970/google-chrome-socket-api-in-extensions)).

I am thinking that I might need to make a native application that will make socket connections through requests made by the browser using [Native Messaging](https://developer.chrome.com/extensions/nativeMessaging "Native Messaging").

Is there anyway I can achieve this or am I out of luck?