Set enableSsl = true in your options while initiating the InstaMsg library.