webbit/webbit — pull request #84 by DeLongey (2012-03-29 06:26:27+00:00)
Title: Proposed fix for wss:// protocol mismatch

I believe this will solve the issue where protocol mismatches were occuring when using Safari and other Apple products. The fix does a regex on the request ORIGIN and determines if it was HTTPS, thereby setting the response protocol to "wss://".

This was listed as a TODO in the code but looks like no one ever patched it up. Let me know if there's any issues and I will fix promptly.