title: SignalR - connect to websocket service from javascript without SignalR library
body: <p>I have a small SignalR project that I've started that right now all it does is receives a string and echo it back to all connected users.</p>
  
  <p>What I'm wondering is, since SignalR open websockets on my server - how can I connect to the service using regular websockets javascript code? (I have a reason for wanting to do it that way without the SignalR library).</p>
  
  <p>I've watched using chrome developer tools and I found that the address the browser is connecting to is:</p>
  
  <pre><code>ws://localhost:53675/signalr/connect?transport=webSockets&amp;clientProtocol=1.4&amp;connectionToken=YKgNxA6dhmtHya1srzPPIv6KFIYEjLTFOogXqcjPErFcKCmRdjvS2X6A2KmraW%2BrLnRUNf68gYPdOkOOgJ8yRcq4iCDm%2BbUyLejsr2NySNZBvLloWuMIAvgI6oC%2Fyt%2Ba&amp;connectionData=%5B%7B%22name%22%3A%22ophirhubtest%22%7D%5D&amp;tid=7
  </code></pre>
  
  <p>How do I generate the token?</p>
  
  <p>Then, it seems that the messages going between the client and server are just regular json formatted text (which will be easy to mimic):</p>
  
  <pre><code>{"C":"d-9E7D682A-A,1|E,0|F,1|G,0","S":1,"M":[]}
  {"H":"ophirhubtest","M":"Echo","A":["test"],"I":0}
  {"C":"d-9E7D682A-A,2|E,0|F,1|G,0","M":[{"H":"ophirHubTest","M":"printEcho","A":["You said: test"]}]}
  </code></pre>
  
  <p>If I just try to connect than it connects but the connection is quickly closed. If I remove the token it closes immediately.</p>
  
  <p>Is it possible to connect to the WS "manually" ?</p>