made socket message generic