When creating a Websocket connection on IE and Edge browsers using the JavaScript API, passing the string of protocols unfortunately creates a comma-separated list of the sub-protocols WITHOUT spaces in the Sec-Websocket-Protocol header for the upgrade request (Bearer,token) while Firefox and Chrome have the header string separated with a comma and a space (Bearer, token). Changing the code to accommodate both.
When creating a Websocket connection on IE and Edge browsers using the JavaScript API, passing the string of protocols unfortunately creates a comma-separated list of the sub-protocols WITHOUT spaces in the
Sec-Websocket-Protocol
header for the upgrade request(Bearer,token)
while Firefox and Chrome have the header string separated with a comma and a space(Bearer, token)
. Changing the code to accommodate both.