title: how to pass Authorization Bearer access token in websocket javascript client
body: <p>My API Manager tool mandates that i should pass the  Authorization Bearer access token with the websocket invocation call.
  They are providing samples of java code where they do that.</p>
  
  <p>The bearer token is set like ("Authorization", "Bearer e2238f3a-e43c-3f54-a05a-dd2e4bd4631f") .How can i do that in javascript?</p>
  
  <pre><code>// HttpResponseDecoder to WebSocketHttpResponseDecoder in the pipeline.
  final WebSocketClientHandler handler = new WebSocketClientHandler(
      WebSocketClientHandshakerFactory
          .newHandshaker(uri, WebSocketVersion.V13, null, 
              false, new DefaultHttpHeaders()
                  .add("Authorization", "Bearer e2238f3a-e43c-3f54-a05a-dd2e4bd4631f"))); 
  </code></pre>
  
  <p>This is how they do it in java
  Is there a way like this to do it from my java script[Angular2] web application? How can i pass this from UI?
  Any Websocket bases testing tool can emulate this?</p>