I'm trying to teach myself WebRTC and have been stuck for a long while on this error (using Chrome):
WebSocket connection to 'wss://URLblahblah/' failed: Error during WebSocket handshake: Unexpected response code: 200
I've read that the reason for this is that the WebSocket connection isn't getting established and that the return code for a successful connection is 101, but have not been able to find out what I need to change/fix to get the 101 return code instead of the 200.
It's on this line of code that the attempt to connect always fails:
var connection = new WebSocket('wss://URLblahblah:443/');
I'm guessing that I have something mis-configured but I don't what it is. I deployed the test app to a Windows 2012 server, and I did add WebSocket capability to its IIS configuration. Does it have something to do with setting the subprotocol (the 2nd optional parameter)? If so what are the values I can use for that parameter when instantiating WebSocket?