refactor : for an initialization of SocketPool and RoamClient