Long polling and HTTPS


Is long polling compatible with HTTPS protocol? My application is set up to use WebSockets as primary transport and long polling as fallback. In Safari 8, websockets would fail and the transport would fall back to long polling if the certificate is invalid. However, I got this error message:

This is a MacOS + Safari only issue. It would be great if anyone has answers to my question or insights to share.