I just changed the demo to read socket = new WebSocket(scheme + host + ':' + port, ['proto1']); (I remove proto2 from the array) and now I'm getting another error.
"Error in permessage-deflate: client_max_window_bits must have value".
Going to keep trying, but if someone has solved this stuff already I'd love to hear about it