Fixed an issue with SSL ('wss'/'https') not connecting