Create an SSL socket for https connections.
Author: Mike Stewart
Avoid mSocket NPE if WebSocketClient.disconnect() is called twice