SSL fixes from React/socket-client
Merge pull request #22 from cboden/ssl-fix

SSL fixes from React/socket-client