Fixed an issue where SSL ('wss'/'https') didn't connect.