Closed ignu closed 7 years ago
Sorry, I somehow missed this pull request, I'll incorporate in shortly
Okay, this blew up in my face the first time I tried it. So I actually decided to implement it differently. If you specify your own method to create your websocket using the createWebsocket option, then you will have access to all the other options you passed in and can do whatever you please including
return new WebSocket(<url>, '', options.headers);
Support an optional
headers
key onoptions
.(I currently need this for authentication from a native iOS app.)