init client of chat