title: Javascript websocket client library which can pass custom headers in handshake request
body: <p>I need a javascript library to connect to my web-socket server which is implemented using python twisted. I tried Native javascript web-socket client but it doesn’t have the option to pass custom headers <a href="https://stackoverflow.com/questions/4361173/http-headers-in-websockets-client-api"> as per this link</a>. My web-socket server does authentication by taking auth_token from handshake header as in Oauth2 standard. Is there any javascript library available for web-socket clients which allows to pass custom header while connecting ?  </p>