chat client build in symfony 2