Coverted wsEssentials to ChatPlus and changed coding style