Hi!
First, it's good that sockjs downgrades correctly :)
Second, yes, indeed, Safari (as opposed to chrome) seems to expect
wss:// in the header during websockets handshake over SSL.
This is in the websockets spec, but chrome is fine without it.
A Sockjs server should indeed send wss:// thing.
For Sockjs-node, we're using faye-websocket-node, which
uses the following code to detect if the connection was over ssl:
https://github.com/faye/faye-websocket-node/blob/master/lib/faye/websocket.js#L25
In other words: it looks for a 'x-forwarded-proto' header from a loadbalancer.
Tim,
what's the situation in vert.x? Can vert.x do SSL termination?
If so, then is vert.x sending wss:// during the ws handshake over SSL?
Additionally, in the case of load balancer doing SSL termination,
could vert.x adhere to ''x-forwarded-proto'' header?
Cheers,
Marek