title: Javascript client for net.tcp connection?
body: <p>Is there any way that I can write javascript that runs in the browser to create client code and connect to a net.tcp service endpoint and port?  </p>
  
  <p>For example, I know that a service contract is exposed at the endpoint <a href="https://www.demoexamplething.com:8001/service/mex" rel="nofollow noreferrer">https://www.demoexamplething.com:8001/service/mex</a> (example), and is running on .NET server-side code (WCF or something else).  How can I use javascript to connect to this endpoint and use its web services?</p>
  
  <p>I know that in a .NET project that I would simply create a "Connected Service" reference and auto-generate client code to work with requests and responses.  How can this be done in Javascript?  </p>