format socketListener class